Is there a quick way to manually change methods in Android Studio?

I recently switched from Eclipse to Android Studio, and I miss the ability to reorder the methods in the .java file by simply dragging them to the class structure window. Is there a way to do this or something similar in Android Studio? (Obviously, I can cut and paste into the editor window, but I was hoping there might be a more efficient way.)

+5
source share
2 answers

You can use the Move Statement Up / Down keyboard shortcuts to quickly change methods. Put your caret in the method name and press Ctrl-Shift-Up / Down to replace it with the previous or next method.

+9
source

I think you need:

Menu-> Refactor-> Move

-1
source

All Articles