Is there a way to have IntelliJ autoformat on save the way eclipse does? I'd like to format changed lines. The problem I'm seeing is that my JavaDoc is not autoformatted, not even when I explicitly tell it to.
I meant, invoking "reformat code" (settings>keymap>all actions>main menu>code>reformat code) does not reformat the javadoc, though it does work on other code.
There is nothing in the codestyles directory. This is probably because I'm using the default settings.
Hi Sean,
Please ensure that 'enable javadoc formatting' option is set at the javadoc code style settings.
Denis
Yep, that's enabled (by default). It's still not putting a blank line between description and @return. The option is enabled.
Am I right understanding that you have a code like below:
The when you invoke 'Reformat' action and the code doesn't look like below now:
Denis
Correct, invoking autoreformat _does not_ add the blank line in the javadoc.
Do you mean 'reformat' under 'autoreformat'?
Please provide your code style settings '*.xml' files (contents of the 'codestyles' folder under 'config dir').
Denis
I meant, invoking "reformat code" (settings>keymap>all actions>main menu>code>reformat code) does not reformat the javadoc, though it does work on other code.
There is nothing in the codestyles directory. This is probably because I'm using the default settings.