Skip to content

Commit 2ae07cc

Browse files
committed
[hotfix][docs] Add steps to avoid import star
1 parent 025ffd1 commit 2ae07cc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

website/community/dev/ide-setup.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,16 @@ It is recommended to automatically format your code by applying the following se
119119
4. Go to "Settings" → "Tools" → "Actions on Save".
120120
5. Under "Formatting Actions", select "Optimize imports" and "Reformat code".
121121
6. From the "All file types list" next to "Reformat code", select Java and Scala.
122+
7. Go to "Settings" → "Editor" → "Code Style" → "Java".
123+
8. Under "Imports" tab on the right side find "Class count to use import with '*'" and put there 9999.
124+
9. Do same with "Names count to use static import with '*'" and click "Apply".
122125

123126
For earlier IntelliJ IDEA versions:
124127

125-
4. Go to "Settings" → "Other Settings" → "Save Actions".
126-
5. Under "General", enable your preferred settings for when to format the code, e.g. "Activate save actions on save".
127-
6. Under "Formatting Actions", select "Optimize imports" and "Reformat file".
128-
7. Under "File Path Inclusions", add an entry for `.*\.java` to avoid formatting other file types.
128+
1. Go to "Settings" → "Other Settings" → "Save Actions".
129+
2. Under "General", enable your preferred settings for when to format the code, e.g. "Activate save actions on save".
130+
3. Under "Formatting Actions", select "Optimize imports" and "Reformat file".
131+
4. Under "File Path Inclusions", add an entry for `.*\.java` to avoid formatting other file types.
129132

130133
You can also format the whole project via Maven by using `mvn spotless:apply`.
131134

@@ -217,4 +220,4 @@ Go to "Settings" → "Build, Execution, Deployment" → "Compiler" → "Java Com
217220

218221
This happens if Fluss dependencies are set to "provided", resulting in them not being available
219222
on the classpath. You can either check "Include dependencies with 'Provided' scope" in your
220-
run configuration, or create a test that calls the `main()` method of the example.
223+
run configuration, or create a test that calls the `main()` method of the example.

0 commit comments

Comments
 (0)