This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
RE: Bug 177010 This may sound really picky but I don't like this change at all. I like to format my code so I can read it easily. This means I don't want really long lines. I don't want a = b + c; I also don't want "some text" + "some more text" I have queries typed in this format: "a = " + a + "," + "b = " + b + "," + "c = " + c + "," + When I format this the options are horrific. Either: "a = " + a + "," + "b = " + b + "," + "c = " + c + "," + or "a = " + a + "," + "b = " + b + "," + "c = " + c + "," + Both are horrible to look at, not neat at all. It always used to work properly until about 6.7. Surely there is a way to format without creating or removing new lines. i.e. All my code was broken with the formatter so it went "a = " + a + "," + "b = " + b + "," + "c = " + c + "," Now I want to retain the new lines, but shift the + back to the end of the lines so it is formatted like this: "a = " + a + "," + "b = " + b + "," + "c = " + c + "," + In summary, format options would be much better if there was an option to "not create or remove new lines" as I want to control where there is a new line in strings or calculations. (Note: this does not apply to the blank space lines such as before/after package, before/after class declaration etc, but only within lines of code)
Fixed in jet-main. Existing newlines should be preserved when changing form 'before binary operators' to 'after binary operators' and vice versa. http://hg.netbeans.org/jet-main/rev/e0adfc4b47ef
Integrated into 'main-golden', will be available in build *201105070000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e0adfc4b47ef User: Dusan Balek <dbalek@netbeans.org> Log: Issue #198311: Wrapping after binary operators - fixed.