Reputation: 9663
Why I am getting this strange formatting of Javadoc in Intellij? The wrapping is completely off:
This is my Intellij Javdoc Formatting rules
Upvotes: 1
Views: 208
Reputation: 517
I've found that the answer that @CrazyCoder provided messes up with line continuation indents. Specifically, that javadoc lines that are wrapped with Hard wrap at are not indented properly, even if the JavaDoc
| Indent continuation lines option is enabled.
To preserver the line continuation indents I followed the instructions provided on the issue (posted, again, by @CrazyCoder) and I have also enabled Wrapping and Braces
| Wrap if long at any place I could find.
Upvotes: 1
Reputation: 401887
You can disable the Wrap at right margin option and use the Wrapping and Braces
| Hard wrap at. The current behavior is a bit confusing and there is an open issue for that.
Upvotes: 1