You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-13-code-style.md
+22-10Lines changed: 22 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,16 +119,6 @@ Also, set the "Scan Scope" to "Only Java sources (including tests)".
119
119
120
120
Save settings by clicking "Apply" and then "OK"
121
121
122
-
## Run checkstyle
123
-
124
-
In the lower part of IntelliJ's window, click on "Checkstyle".
125
-
In "Rules", change to "JabRef".
126
-
Then, you can run a check on all modified files.
127
-
128
-
{% figure caption:"JabRef's style is active - and we are ready to run a check on all modified files" %}
129
-

130
-
{% endfigure %}
131
-
132
122
## Enable proper import cleanup
133
123
134
124
To enable "magic" creation and auto cleanup of imports, go to **File > Settings... > Editor > General > Auto Import**.
@@ -141,6 +131,18 @@ There, enable both "Add unambiguous imports on the fly" and "Optimize imports on
141
131
142
132
Press "OK".
143
133
134
+
## Have auto format working properly in JavaDoc
135
+
136
+
To have auto format working properly in the context of JavaDoc and line wrapping, "Wrap at right margin" has to be disabled. Details are found in [IntelliJ issue 240517](https://youtrack.jetbrains.com/issue/IDEA-240517).
137
+
138
+
Go to **File > Settings... > Editor > Code Style > Java > JavaDoc**.
139
+
140
+
At "Other", disable "Wrap at right margin"
141
+
142
+
{% figure caption:"”Wrap at right margin” disabled" %}
143
+

144
+
{% endfigure %}
145
+
144
146
## Disable too advanced code folding
145
147
146
148
Go to **File > Settings... > Editor > General > Code Folding**.
@@ -153,6 +155,16 @@ At section "Java", disable "One-line methods".
153
155
154
156
Press "OK".
155
157
158
+
## Run checkstyle
159
+
160
+
In the lower part of IntelliJ's window, click on "Checkstyle".
161
+
In "Rules", change to "JabRef".
162
+
Then, you can run a check on all modified files.
163
+
164
+
{% figure caption:"JabRef's style is active - and we are ready to run a check on all modified files" %}
165
+

0 commit comments