Change auto-format line width limit?

When auto-formatting java-code, it seems like IntelliJ will wrap long lines at ~150 chars.

Is there any way to change this limit?

Cannot find it in the Settings dialog...

Comment actions Permalink

And an additional questions.

There is a setting:
  Code Style => Java => Wrapping and Braces => Keep when reformatting => Line Breaks
which I have checked.

Still, it appears, Javadoc comment lines will be joined together to make longer lines.

Is there a way to avoid that?
I would like to keep line-breaks in comments, too, when reformatting...

Edit: Clarified re. Javadoc comments (not // comments)

Comment actions Permalink

Code Style -> General -> Right margin


Please sign in to leave a comment.