Simple way to reorder methods of a Java class in IntelliJ?
Posted
by Péter Török
on Stack Overflow
See other posts from Stack Overflow
or by Péter Török
Published on 2010-05-13T13:54:12Z
Indexed on
2010/05/13
14:04 UTC
Read the original article
Hit count: 294
Is there a simpler way of reordering methods within a class source file in IntelliJ than cutting and pasting the code manually? Nowadays I often need this while refactoring legacy code, e.g. to move related methods close to each other in the source code.
In Eclipse AFAIK there is a view similar to the Structure view of IntelliJ, where I can drag and drop methods around. However, this does not work in IntelliJ and I couldn't find any hints from its help either.
I am using IntelliJ 9.0.2 to be specific.
© Stack Overflow or respective owner