Robert Mark Bram
Robert Mark Bram

Reputation: 9663

Strange Javadoc wrapping in Intellij

Why I am getting this strange formatting of Javadoc in Intellij? The wrapping is completely off:

Strange Javadoc formatting in Intellij

This is my Intellij Javdoc Formatting rules

Intellij Javdoc Formatting rules

Upvotes: 1

Views: 208

Answers (2)

Alex Mandelias
Alex Mandelias

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

CrazyCoder
CrazyCoder

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

Related Questions