编辑vscode的快捷键配置文件bindings .json。位置如下,
内容(部分bug已修复),
[
{
"command": "editor.action.clipboardCopyAction",
"key": "ctrl+c"
},
{
"command": "editor.action.clipboardCopyAction",
"key": "ctrl+[Insert]"
},
{
"command": "editor.action.clipboardCutAction",
"key": "ctrl+x"
},
{
"command": "editor.action.clipboardCutAction",
"key": "shift+[Delete]"
},
{
"command": "editor.action.clipboardPasteAction",
"key": "ctrl+v"
},
{
"command": "editor.action.clipboardPasteAction",
"key": "shift+[Insert]"
},
{
"command": "redo",
"key": "shift+ctrl+z"
},
{
"command": "redo",
"key": "shift+alt+[Backspace]"
},
{
"command": "undo",
"key": "ctrl+z"
},
{
"command": "undo",
"key": "alt+[Backspace]"
},
{
"command": "workbench.view.debug",
"key": "alt+5"
},
{
"command": "workbench.action.navigateBack",
"key": "ctrl+alt+[ArrowLeft]"
},
{
"command": "git.commitAll",
"key": "ctrl+k",
"when": "!inDebugMode && !terminalFocus"
},
{
"command": "workbench.view.debug",
"key": "shift+alt+f9"
},
{
"command": "workbench.action.closeActiveEditor",
"key": "ctrl+f4"
},
{
"command": "editor.action.triggerSuggest",
"key": "ctrl+[Space]",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"command": "editor.foldAll",
"key": "shift+ctrl+[NumpadSubtract]",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "editor.foldAll",
"key": "shift+ctrl+[Minus]",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "editor.fold",
"key": "ctrl+[NumpadSubtract]",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "editor.fold",
"key": "ctrl+[Minus]",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "editor.foldRecursively",
"key": "ctrl+alt+[NumpadSubtract]",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "editor.foldRecursively",
"key": "ctrl+alt+[Minus]",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "editor.action.blockComment",
"key": "shift+ctrl+[Slash]",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "editor.action.blockComment",
"key": "shift+ctrl+[NumpadDivide]",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "editor.action.commentLine",
"key": "ctrl+[Slash]",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "editor.action.commentLine",
"key": "ctrl+[NumpadDivide]",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "workbench.action.tasks.build",
"key": "ctrl+f9"
},
{
"command": "copyFilePath",
"key": "shift+ctrl+c",
"when": "!editorFocus"
},
{
"command": "workbench.action.debug.run",
"key": "shift+f9",
"when": "debuggersAvailable"
},
{
"command": "merge-conflict.accept.current",
"key": "shift+alt+[ArrowRight]",
"when": "isInDiffEditor"
},
{
"command": "merge-conflict.accept.incoming",
"key": "shift+alt+[ArrowLeft]",
"when": "isInDiffEditor"
},
{
"command": "workbench.action.quickOpenNavigateNext",
"key": "ctrl+[Tab]",
"when": "inQuickOpen"
},
{
"command": "workbench.action.quickOpenNavigateNext",
"key": "ctrl+[Tab]"
},
{
"command": "git.openChange",
"key": "ctrl+d"
},
{
"command": "editor.action.goToDeclaration",
"key": "f4",
"when": "editorTextFocus"
},
{
"command": "workbench.action.files.showOpenedFileInNewWindow",
"key": "shift+f4",
"when": "emptyWorkspaceSupport"
},
{
"command": "acceptSelectedSuggestion",
"key": "shift+ctrl+[Enter]",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"command": "acceptSelectedSuggestion",
"key": "shift+ctrl+[Enter]",
"when": "acceptSuggestionOnEnter && suggestWidgetVisible && suggestionMakesTextEdit && textInputFocus"
},
{
"command": "editor.action.deleteLines",
"key": "ctrl+y",
"when": "textInputFocus && !editorReadonly"
},
{
"command": "deleteWordRight",
"key": "ctrl+[Delete]",
"when": "textInputFocus && !editorReadonly"
},
{
"command": "deleteWordLeft",
"key": "ctrl+[Backspace]",
"when": "textInputFocus && !editorReadonly"
},
{
"command": "editor.action.copyLinesDownAction",
"key": "ctrl+d",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "editor.action.joinLines",
"key": "shift+ctrl+j",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "cursorLineEnd",
"key": "[End]",
"when": "textInputFocus"
},
{
"command": "cursorLineEndSelect",
"key": "shift+[End]",
"when": "textInputFocus"
},
{
"command": "cursorLineStart",
"key": "[Home]",
"w