incompatibilty of reformat and limited line length.

There is a feature that tells Intellij to try keep Java source code to
line lengths limited to some maximum. Sorry I don't recall where in
the menu warren you turn it on.

When you reformat it reflows to conform.

The catch is, sometimes there not sufficient natural line breaks.
For a unrealistic  example a string of xxs 150 long, either enclosed
in quotes or not.

Reformat then goes nuts, and inserts scores of blank lines or ""+
lines rather than just giving up and leaving the line alone.

I hope you can reproduce this without requiring a formal bug
submission.  I don't like submitting bugs until I know others see them
too.  I have an unusually strong Murphy field. :)

--
Roedy Green Canadian Mind Products http://mindprod.com
When discusing on the Internet, anything you say is presumed to contradict
someone else. If you are not, it is wise to explicitly state that you agree
with or are elaborating on what someone else said. You can do this
efficiently by starting your post with the word "Further" or "Also".


2 comments
Comment actions Permalink

On Wed, 31 Oct 2012 09:47:12 -0700, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :

>Reformat then goes nuts, and inserts scores of blank lines or ""+
>lines rather than just giving up and leaving the line alone.

To matters worse, I think it sometimes works and sometimes does not. I
have not figured out how it decides when to misbehave.
--
Roedy Green Canadian Mind Products http://mindprod.com
When discusing on the Internet, anything you say is presumed to contradict
someone else. If you are not, it is wise to explicitly state that you agree
with or are elaborating on what someone else said. You can do this
efficiently by starting your post with the word "Further" or "Also".


0
Comment actions Permalink

Please provide a sample source file and your code style settings which show the problem.

Denis

0

Please sign in to leave a comment.