vscode键盘快捷方式json大全
时间: 2023-08-21 18:03:41 浏览: 218
以下是一些常用的 VS Code 键盘快捷方式的 JSON 配置:
1. 新建文件:`{ "key": "ctrl+n", "command": "workbench.action.files.newUntitledFile" }`
2. 打开文件:`{ "key": "ctrl+o", "command": "workbench.action.files.openFile" }`
3. 保存文件:`{ "key": "ctrl+s", "command": "workbench.action.files.save" }`
4. 关闭文件:`{ "key": "ctrl+w", "command": "workbench.action.closeActiveEditor" }`
5. 撤销:`{ "key": "ctrl+z", "command": "undo" }`
6. 重做:`{ "key": "ctrl+y", "command": "redo" }`
7. 全选:`{ "key": "ctrl+a", "command": "editor.action.selectAll" }`
8. 复制:`{ "key": "ctrl+c", "command": "editor.action.clipboardCopyAction" }`
9. 剪切:`{ "key": "ctrl+x", "command": "editor.action.clipboardCutAction" }`
10. 粘贴:`{ "key": "ctrl+v", "command": "editor.action.clipboardPasteAction" }`
11. 查找:`{ "key": "ctrl+f", "command": "actions.find" }`
12. 保存所有文件:`{ "key": "ctrl+shift+s", "command": "workbench.action.files.saveAll" }`
13. 打开终端:`{ "key": "ctrl+`", "command": "workbench.action.terminal.toggleTerminal" }`
14. 切换侧边栏:`{ "key": "ctrl+b", "command": "workbench.action.toggleSidebarVisibility" }`
15. 切换全屏模式:`{ "key": "f11", "command": "workbench.action.toggleFullScreen" }`
以上是一些常用的快捷方式,您可以根据自己的需求进行配置。同时,您也可以通过 VS Code 的“键盘快捷方式”设置页面进行修改。
阅读全文