How can indentation be automatically (not manually) corrected in IntelliJ?
In Eclipse, it\'s possible to just highlight the code that needs indenting, right-click, a
Solution of unchecking comment at first column
is partially working, because it works for line comments, but not block comments.
So, with lines like:
/* first line
* second line
* ...
*/
or
// line 1
// line 2
// line 3
...
they are indented with "Auto reformat", but lines like:
/* first line
second line
...
*/
the identation will not be fixed.
So you should:
*
or //
before each line of commentsKeep when reformatting -> comment at first column
Auto reformat
.