更新时间:2023-02-18 15:06:17
您正在寻找的命令是 editor.action.copyLinesDownAction
和 editor.action.copyLinesUpAction
.
The commands your are looking for are editor.action.copyLinesDownAction
and editor.action.copyLinesUpAction
.
您可以通过选择来查看关联的键绑定:文件 > 首选项 > 键盘快捷键
You can see the associated keybindings by picking: File > Preferences > Keyboard Shortcuts
Windows:
Shift+Alt+Down 和 Shift+Alt+向上
苹果机:
Shift+Option+Down 和 Shift+Option向上
Linux:
Ctrl+Shift+Alt+向下 和 Ctrl+Shift+Alt+向上
(Linux 可能需要使用 numpad Down 和 Up)
(Might need to use numpad Down and Up for Linux)
此外,命令 editor.action.moveLinesUpAction
和 editor.action.moveLinesDownAction
是用于移动行的命令,它们绑定到 Alt+Down 和 Alt+Up(在 Windows 和 Mac 上)和 Ctrl+Down 和Ctrl+Up 在 Linux 上.
Furthermore, commands editor.action.moveLinesUpAction
and editor.action.moveLinesDownAction
are the ones to move lines and they are bound to Alt+Down and Alt+Up on Windows and Mac and Ctrl+Down and Ctrl+Up on Linux.