【首选项】-->【键盘快捷方式】-->【用于高级自定义打开和编辑 keybindings.json】
[
{ "key": "alt+/", "command": "editor.action.triggerSuggest","when": "editorTextFocus" },
{ "key": "ctrl+d", "command": "editor.action.cutLines","when": "editorTextFocus" },
{ "key": "ctrl+alt+down","command": "editor.action.copyLinesDownAction", "when": "editorTextFocus" },
{ "key": "ctrl+alt+up", "command": "editor.action.copyLinesUpAction", "when": "editorTextFocus" },
{ "key": "shift+alt+r","command": "editor.action.rename","when": "editorTextFocus" },
{ "key": "ctrl+shift+c","command": "editor.action.commentLine","when": "editorTextFocus" },
{ "key": "ctrl+d","command": "editor.action.deleteLines","when": "editorTextFocus" },
{ "key": "ctrl+k","command": "editor.action.addSelectionToNextFindMatch","when": "editorFocus"},
{ "key": "alt+shift+2","command": "workbench.action.splitEditor"},
{ "key": "ctrl+shift+f","command": "editor.action.format","when": "editorTextFocus"},
]
本文介绍如何在VSCode中自定义快捷键,通过编辑keybindings.json文件实现常用操作如智能提示、复制粘贴代码行等快速访问,提高开发效率。
3496

被折叠的 条评论
为什么被折叠?



