How to sort class members in existing code?

There's an option: Project settings - Code Style - Java - Code Generation - Order of members.
But it doesn't work with an existing code.

How can I sort them by category (like Static Inner Classes, then Inner Classes, then Static fields etc...) and alphabetically in each category?

1 comment
Comment actions Permalink

I found the answer.

Rearranger plugin in IDEA up to v11.
IDEA v12 will support it out of the box.
http://stackoverflow.com/questions/12780727/how-to-sort-class-members-in-existing-code-in-inteelij-idea

0

Please sign in to leave a comment.