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