如何在android studio中移动(上/下)代码行? [英] how to move (up/down) code lines in android studio?
本文介绍了如何在android studio中移动(上/下)代码行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在eclipse中,我们使用 Alt + ↑ / ↓来上移或下移。
In eclipse we use Alt + ↑/↓ to move line up or down.
android studio中有任何快捷方式吗?
或任何快速避免复制的方法&粘贴?
Is there any shortcut in android studio do the same? Or any quick way to avoid copy & paste?
推荐答案
添加,删除和移动行
移动一行:
Adding, Deleting and Moving Lines
To move a line:
将插入符号放在要移动的行上。
Place the caret at the line to be moved.
执行以下操作之一:
在主菜单上,选择代码|移动排队或代码|向下移动
。
按 Shift + Alt + 向上或 Shift + Alt + Down 。
Press Shift+Alt+Up or Shift+Alt+Down.
这篇关于如何在android studio中移动(上/下)代码行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文