Search code examples
methodsintellij-ideaintellij-14

How to change method order intellij?


Assume I have a class written as below

public MyClass{

   public void method2(){

   }

   public void method1(){

   }

}

but I would like to see method1() appearing first and method2() appearing second.

Is there anyway to do that with intellij without manually copy pasting? I cant find any tool inside method summary window.


Solution

  • If you only want to move the method up/down you can simply select it and usectrl + shift + (up/down) in order to move it as wished.