我试图找到在Visual Studio代码中复制一行的快捷方式(我使用1.3.1),我尝试了明显的CTRL + D,但似乎不起作用。
当前回答
Mac:
重复行下:shift + option +↓
重复排列:shift + option +↑
其他回答
Ubuntu:
重复排列:Ctrl + Alt + Shift + 8 重复行下:Ctrl + Alt + Shift + 2
根据操作系统的不同,可以使用以下方法:
窗口:
帽子Shift + Alt +↓还是是Shift + Alt +↑。
Mac:
Shift +Option +↓或Shift +Option +↑
使用以下方法:Shift + Alt+(↓或↑)
在键盘快捷键中搜索copyLinesDownAction或copyLinesUpAction
通常为SHIFT+ALT+↓
另外2个非常有用的快捷键是上下移动选定的行,就像sublime text…
{
"key" : "ctrl+shift+down", "command" : "editor.action.moveLinesDownAction",
"when" : "editorTextFocus && !editorReadonly"
},
and
{
"key" : "ctrl+shift+up", "command" : "editor.action.moveLinesUpAction",
"when" : "editorTextFocus && !editorReadonly"
}
推荐文章
- 如何设置每个文件类型的标签大小?
- 我如何添加环境变量启动。VSCode中的json
- 如何格式化Visual Studio Code项目中的所有文件?
- Pylint在Visual Studio代码中“未解决的导入”错误
- 如何在VS Code中默认打开文本换行
- 在Visual Studio代码中更改突出显示文本的颜色
- Visual studio代码-键盘快捷键-全部展开/折叠
- Visual Studio Code无法检测已安装的Git
- 禁用Visual Studio代码中的工具提示提示
- Visual Studio Code -将空格转换为制表符
- 在VSCode中的列自动硬换行
- Visual Studio Code:格式没有使用缩进设置
- 如何排除文件扩展名和语言从“格式保存”在VSCode?
- Visual Studio代码- URI的目标不存在" package:flutter/material.dart "
- VSCode——如何设置调试Python程序的工作目录