Shortcut for moving code block up and down in Android Studio

可紊 提交于 2019-12-07 03:58:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!