Split Line and Work in Progress not consistant.

This seems like a bug to me, and I searched tracker to no avail, but I wanted to check here first before I submitted it to tracker.

The new "Work in Progress" feature in Aurora has an option under "Wrapping binary operations" called "Place binary operation sign on next line when wrapping", which will cause lines like:

int x = (2 + 3 + 4 + 5 + 6) *
(7 + 8 + 9 + 10) *
(11 + 12 + 13 + 14 +
0xFFFFFFFF);

To be reformatted like:

int x = (2 + 3 + 4 + 5 + 6)

  • (7 + 8 + 9 + 10)

  • (11 + 12 + 13

+ 14
+ 0xFFFFFFFF);

However when I use the split line (+]]>) to split a long string over two lines I get the following results:

String temp = "The quick brown fox jumped over " +
"the lazy dog.";

What I expected was:

String temp = "The quick brown fox jumped over "
+ "the lazy dog.";

I wanted to get a feel if people thought this was a bug or a feature, so I can add it to tracker. In the likely case, that this is already in tracker and I didn't find it, please let me know and I'll go vote for it.

Regards,
C.J.

2 comments
Comment actions Permalink

I wanted to get a feel if people thought this was a bug or a feature, so I

can add it to tracker. In the likely case, that this is already in tracker
and I didn't find it, please let me know and I'll go vote for it.

I don't think this is in the tracker. You can add it.

It's a bug. I also have the "new line" option checked for binary/ternary
operators and would like to have this corrected.

Strictly unbiased opinion of course :)

Carlos


0
Comment actions Permalink

Yes, it is actually bug. Please submit request into tracker.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Chris Johnson" <ChrisJ@vertical.com> wrote in message
news:20062460.1054148839478.JavaMail.jrun@is.intellij.net...

This seems like a bug to me, and I searched tracker to no avail, but I

wanted to check here first before I submitted it to tracker.
>

The new "Work in Progress" feature in Aurora has an option under "Wrapping

binary operations" called "Place binary operation sign on next line when
wrapping", which will cause lines like:
>

int x = (2 + 3 + 4 + 5 + 6) *
(7 + 8 + 9 + 10) *
(11 + 12 + 13 + 14 +
0xFFFFFFFF);

>

To be reformatted like:

>

int x = (2 + 3 + 4 + 5 + 6)

  • (7 + 8 + 9 + 10)

  • (11 + 12 + 13

+ 14
+ 0xFFFFFFFF);

>

However when I use the split line (<Ctrl>+<Enter>) to split a long string

over two lines I get the following results:
>

String temp = "The quick brown fox jumped over " +
"the lazy dog.";

>

What I expected was:

>

String temp = "The quick brown fox jumped over "
+ "the lazy dog.";

>

I wanted to get a feel if people thought this was a bug or a feature, so I

can add it to tracker. In the likely case, that this is already in tracker
and I didn't find it, please let me know and I'll go vote for it.
>

Regards,
C.J.

>


0

Please sign in to leave a comment.