vscode按键绑定

  • keybindings.json

// Empty
[
    {
        "key": "ctrl+space",
        "command": "-editor.action.triggerSuggest",
        "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
    },
    {
        "key": "ctrl+shift+a",
        "command": "workbench.action.terminal.focus"
    },
    {
        "key": "ctrl+shift+space",
        "command": "editor.action.triggerSuggest"
    },
    {
        "key": "ctrl+shift+alt+s",
        "command": "sftp.upload.activeFile"
    },
    {
        "key": "ctrl+shift+oem_period",
        "command": "editor.action.quickFix",
        "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+oem_period",
        "command": "-editor.action.quickFix",
        "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+shift+c",
        "command": "-workbench.action.terminal.openNativeConsole",
        "when": "!terminalFocus"
    },
    {
        "key": "ctrl+shift+c",
        "command": "-workbench.action.terminal.copySelection",
        "when": "terminalFocus && terminalProcessSupported && terminalTextSelected"
    },
    {
        "key": "ctrl+shift+c",
        "command": "workbench.scm.focus"
    },
    {
        "key": "ctrl+shift+alt+d",
        "command": "workbench.action.toggleMultiCursorModifier"
    },
    {
        "key": "ctrl+shift+alt+d",
        "command": "editor.action.insertCursorBelow",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+alt+down",
        "command": "-editor.action.insertCursorBelow",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+alt+z",
        "command": "redo"
    },
    {
        "key": "ctrl+y",
        "command": "-redo"
    },
    {
        "key": "ctrl+shift+alt+q",
        "command": "rest-client.rerun-last-request",
        "when": "editorTextFocus && editorLangId == 'http'"
    },
    {
        "key": "ctrl+alt+l",
        "command": "-rest-client.rerun-last-request",
        "when": "editorTextFocus && editorLangId == 'http'"
    },
    {
        "key": "ctrl+shift+alt+q",
        "command": "rest-client.rerun-last-request",
        "when": "editorTextFocus && editorLangId == 'plaintext'"
    },
    {
        "key": "ctrl+alt+l",
        "command": "-rest-client.rerun-last-request",
        "when": "editorTextFocus && editorLangId == 'plaintext'"
    },
    {
        "key": "ctrl+shift+alt+q",
        "command": "rest-client.rerun-last-request"
    },
    {
        "key": "ctrl+alt+l",
        "command": "-rest-client.rerun-last-request",
        "when": "httpResponsePreviewFocus"
    },
    {
        "key": "ctrl+shift+alt+p",
        "command": "workbench.action.editor.changeLanguageMode",
        "when": "!notebookEditorFocused"
    },
    {
        "key": "ctrl+k m",
        "command": "-workbench.action.editor.changeLanguageMode",
        "when": "!notebookEditorFocused"
    },
    {
        "key": "ctrl+j",
        "command": "workbench.action.terminal.resizePaneUp"
    },
    {
        "key": "ctrl+k",
        "command": "workbench.action.terminal.resizePaneDown"
    },
    {
        "key": "shift+e",
        "command": "-case-transform.cls",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+shift+alt+n",
        "command": "workbench.action.terminal.newInActiveWorkspace"
    }
]