I have recently switched from Eclipse to Android Studio, and I miss being able to rearrange the methods in a .java file by simply dragging and dropping them in the class structure window. Is there a way to do this or something similar in Android Studio? (Obviously I can cut and paste in the editor window, but I was hoping there might be a more efficient way.)
You can use Move Statement Up/Down shortcuts to rearrange methods quickly. Put your caret on the method name and press Ctrl-Shift-Up/Down (Cmd-Shift-Up/Down on Mac OS X) to swap it with either the previous or next method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With