问题
is there any shortcut for move a selected code block up and down in android studio?
In Visual Studio 2010+ I just select my block, hold ALT-Key and press arrow up / arrow down. Then, the selected block float up/down.
Is there a similar action in Android Studio?
回答1:
Try Ctrl-Shift-Up or down arrow. I know intellij and as this is based on intellij that might work.
回答2:
You can use Ctrl
+ Shift
+ Up/Down Arrows
to move the selected block up or down.
Here is a list of shortcut keys for Windows&Linux
.
回答3:
On Mac:
Command
+ Shift
+ Up/down arrows
来源:https://stackoverflow.com/questions/36712796/shortcut-for-moving-code-block-up-and-down-in-android-studio