如何在Mac的Visual Studio Code中向上或向下移动行


Answers:



11

对于Windows:

向上移动一条线:alt + ↑(alt +向上箭头键)

向下移动一行: alt + ↓(alt +向下箭头键)


还有Linux :)
Thiago Nogueira

4

对于我来说,在Mac的Visual Studio Code中,它是:

向上移动一条线:+ shift+ (alt + Shift +向上箭头键)

向下移动一行:+ shift+ (alt + Shift +向下箭头键)

我确实安装了IntelliJ IDEA键绑定


2
这样可以上下移动代码,但是也可以复制代码。
M3nd3z

3

您可以在“选择”菜单中找到相应的命令(“向上移动行”和“向下移动行”)以及当前设置的快捷键。

另外,如果在打开文档的同时启动命令面板(“视图/命令面板”),也可以在其中找到它们(键入“ move”或“ line”)。


1
如果您也添加密钥,则此答案可能会更好。
凌晨
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.