Community
Participate
Working Groups
Build Identifier: M20100211-1343 it would be nice if there were an option to automatically organise code. I like to keep my files as fields enums constructors accessors other methods and each one of those ordered by access (first public, then protected, then private) it would be nice if I were able to automatically do this. Reproducible: Always Steps to Reproduce: enhancement, unreproducable
Did you try 'Window > Preferences > Java > Appearance > Members Sort order' ? Does it not fit your needs ?
(In reply to comment #0) > Build Identifier: M20100211-1343 > > it would be nice if there were an option to automatically organise code. I like > to keep my files as > fields > enums See also Bug 218705. > constructors > accessors > other methods
>it would be nice if I were able to automatically do this. Besides what Deepak mentioned, you can enable the sorting on save, see 'Save Actions' preference/properties page.
I did not know that, thanks. It would still be nice if, in addition to this, I could do this on the fly e.g. in a (context) menu or button (source/organise code?). Also, I miss the ability to do accessors separately. Should I mark this bug as closed and open a new one for that, or just keep this one?
> It would still be nice if, in addition to this, I could do this on the fly e.g. > in a (context) menu or button (source/organise code?). Source > Sort Members... > Also, I miss the ability to do accessors separately. See bug 72418.
Thanks Markus. I'll go wash the egg from my face now.