The Rearranger plugin reorders class and class member declarations according to a user-specified order.
Version 1.2 adds the ability to group extracted methods with their caller(s). An extracted method is one which is called by another, except that getters and setters are specifically excluded.
If called by more than one method, extracted methods may be grouped with the first or last caller.
If an extracted method in turn calls another, the resulting tree of methods may be arranged in depth-first or breadth-first order.
A group of extracted methods at the same level in the tree may be arranged in the order they were called (usage order), in the order they originally had (before rearrangement), or alphabetically.
Overloaded methods may be forced into adjacent positions, overriding the ordering just described.
- Bug fix: avoid hanging IDEA.
See http://www.intellij.org/twiki/bin/view/Main/RearrangerPlugin for more details.
Please let me know of any problems you find!
P.S. Here's a short list of outstanding feature requests:
- Ability to group methods together that implement an interface
- Global comment pattern control
- multiple constructor ordering
- overloaded method ordering
Please let me know if you have other ideas, too.