Community
Participate
Working Groups
Right now one only has the following two options: (1) either leave all blank lines (2) remove all blank lines I would appreciate the following option: (3) replace several blank lines with XX lines (default = 1) Example: @@ Before -- same as Option (1) @@ //just a comment int b; //another one int b2; char a; b3.foo(); @@ @@ after "Code Format" w/ Option (2) @@ //just a comment int b; //another one int b2; char a; b3.foo(); @@ @@ after "Code Format" w/ Option (3) "replace with '1' line" @@ //just a comment int b; //another one int b2; char a; b3.foo(); @@ Usually one "consciously" inserts those blank lines to separate statements belonging to each other from others -- Option (1) is that viable in that case. Sometimes one just forgets to delete the extraneous lines -- it would be nice if the formatter could delete them -- right now one has to hunt for them manually ... Sebastian Davids
At the bottom I ment "not viable" ;-)
Defer till post 2.0.
Resurrecting formatter issues in 2.1 stream.
Clearing resolution
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new implementation is still in the works. Therefore we cannot include it for 2.1. Not enough testing and we need to polish the preferences. This will be address for 2.2 as stated in the JDT/Core plan.
Resurrecting for 3.0
Reopen for 3.0 consideration.
This is addressed in the new formatter. Fixed and released in HEAD. Regression test added.
verified Version: 3.0.0 Build id: 200309300010