Community
Participate
Working Groups
JW (5/21/2001 1:37:34 PM) 108 To save screen space, some developers don't want to indent their method bodies. This could be a useful option (in the future).
Defer
Resurrecting formatter issues in 2.1 stream.
Clearing resolution
*** Bug 10607 has been marked as a duplicate of this bug. ***
*** Bug 10859 has been marked as a duplicate of this bug. ***
*** Bug 25103 has been marked as a duplicate of this bug. ***
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.
Out of those who requested this, is there anyone who also wanted for nested types to not have their members indented? My opinion is that the entire class formatting should have 1 less TAB everywhere, and not that nested classes should also be non-indented. Here is how I like my indentation: public class Outer { public static void main(String arg[]) { blah = new Blah(); blah.addListener(new Listener() { public void notify() { //do something } }; } static class Nested { int x; int y; } } See also bug 63900. My feeling is that original request was slightly mistated, but maybe I'm wrong and there are those who don't want nested classes indented either, thus requiring a 3rd type of indentation described in my other bug.