Community
Participate
Working Groups
The code formatter continues to be an excellent feature of Eclipse, but there is one aspect that offends my sensibilities... Binary expressions wrap and place the operator at the start of the next line. I'd much prefer the operators at the end of the previous line, for example: Eclipse 3.2 formatter now gives me this (3.1 did, too): int sum = 100 + 200 + 300 + 400 + 500 + 600 + 700 + 800; But I would prefer: int sum = 100 + 200 + 300 + 400 + 500 + 600 + 700 + 800; This is when set to "wrap when necessary" and "column indent". I might choose different options, but the key idea is that the operator should (IMHO) be at the end of the line, not the start
*** This bug has been marked as a duplicate of 90238 ***
Are you sure this is a dup of 90238? That appears to be talking about Eclipse breaking at whatever point it decides to to match the max-linelength, whereas my issue is that when it decides to wrap, it wraps before the operator, not after it If I have int a = 100 + 200 + 300 + 400; there is no line-length I could specify to make it produce int a = 100 + 200 + 300 + 400; It will always come up with int a = 100 + 200 + 300 + 400; even if that leaves enough whitespace after '200' to put the '+' on the same line. Your assessment that it is a dup is on much better info than I have, so I trust your choice - I just wanted to make sure :)
I missed the right bug id. Reopen to close as dup of bug 79068.
*** This bug has been marked as a duplicate of 79068 ***
Verified for 3.3 M7 using build I20070427-0010.