美文网首页
Vscode 个人自定义快捷键

Vscode 个人自定义快捷键

作者: ysnows | 来源:发表于2017-07-11 11:11 被阅读157次
    // 将键绑定放入此文件中以覆盖默认值
    // 将键绑定放入此文件中以覆盖默认值
    [
        {
            "key": "ctrl+cmd+l",
            "command": "cursorEnd",
            "when": "editorTextFocus"
        },
        {
            "key": "ctrl+j",
            "command": "cursorDown",
            "when": "editorTextFocus"
        },
        {
            "key": "ctrl+h",
            "command": "cursorLeft",
            "when": "editorTextFocus"
        },
        {
            "key": "ctrl+cmd+h",
            "command": "cursorHome",
            "when": "editorTextFocus"
        },
        {
            "key": "ctrl+l",
            "command": "cursorRight",
            "when": "editorTextFocus"
        },
        {
            "key": "cmd+l",
            "command": "editor.action.deleteLines",
            "when": "editorTextFocus && !editorReadonly"
        },
        {
            "key": "cmd+alt+l",
            "command": "editor.action.formatDocument",
            "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
        },
        {
            "key": "cmd+shift+enter",
            "command": "editor.action.insertLineAfter",
            "when": "editorTextFocus && !editorReadonly"
        },
        {
            "key": "ctrl+alt+l",
            "command": "cursorWordEndRight",
            "when": "editorTextFocus"
        },
        {
            "key": "ctrl+alt+h",
            "command": "cursorWordStartLeft",
            "when": "editorTextFocus"
        },
        {
            "key": "shift+cmd+space",
            "command": "workbench.action.debug.start",
            "when": "!inDebugMode"
        },
        {
            "key": "cmd+i",
            "command": "editor.action.quickFix",
            "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
        },
        {
            "key": "cmd+e",
            "command": "workbench.action.quickOpen"
        },
        // {
        //     "key": "shift+cmd+space",
        //     "command": "workbench.action.tasks.build"
        // },
        {
            "key": "shift+cmd+h",
            "command": "editor.action.marker.next",
            "when": "editorFocus && !editorReadonly"
        },
        {
            "key": "cmd+5",
            "command": "workbench.action.terminal.toggleTerminal"
        },
        {
            "key": "cmd+1",
            "command": "workbench.action.toggleSidebarVisibility"
        },
        {
            "key": "shift+cmd+s",
            "command": "workbench.files.action.showActiveFileInExplorer"
        },
        {
            "key": "ctrl+k",
            "command": "cursorUp",
            "when": "editorTextFocus"
        },
        {
            "key": "ctrl+j",
            "command": "repl.action.historyPrevious",
            "when": "editorTextFocus && inDebugRepl && onFirsteDebugReplLine"
        },
        {
            "key": "ctrl+k",
            "command": "list.focusUp",
            "when": "listFocus"
        },
        {
            "key": "ctrl+k",
            "command": "search.action.focusSearchFromResults",
            "when": "firstMatchFocus && searchViewletVisible"
        },
        {
            "key": "ctrl+k",
            "command": "search.focus.previousInputBox",
            "when": "inputBoxFocus && searchViewletVisible && !searchInputBoxFocus"
        },
        {
            "key": "ctrl+k",
            "command": "showPrevParameterHint",
            "when": "editorTextFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
        },
        {
            "key": "ctrl+k",
            "command": "selectPrevSuggestion",
            "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
        },
        {
            "key": "ctrl+k",
            "command": "workbench.action.interactivePlayground.arrowUp",
            "when": "interactivePlaygroundFocus && !editorTextFocus"
        },
        {
            "key": "ctrl+j",
            "command": "workbench.action.quickOpenSelectNext",
            "when": "inQuickOpen"
        },
        {
            "key": "ctrl+j",
            "command": "repl.action.historyNext",
            "when": "editorTextFocus && inDebugRepl && onFirsteDebugReplLine"
        },
        {
            "key": "ctrl+j",
            "command": "list.focusDown",
            "when": "listFocus"
        },
        {
            "key": "ctrl+j",
            "command": "search.focus.NextInputBox",
            "when": "inputBoxFocus && searchViewletVisible && !searchInputBoxFocus"
        },
        {
            "key": "ctrl+j",
            "command": "showNextParameterHint",
            "when": "editorTextFocus && parameterHintsMultipleSignatures && parameterHintsVisible"
        },
        {
            "key": "ctrl+j",
            "command": "selectNextSuggestion",
            "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
        },
        {
            "key": "ctrl+j",
            "command": "workbench.action.interactivePlayground.arrowDown",
            "when": "interactivePlaygroundFocus && !editorTextFocus"
        },
        {
            "command": "workbench.action.quickOpenSelectPrevious",
            "key": "ctrl+k",
            "when": "inQuickOpen"
        },
        {
            "key": "cmd+k",
            "command": "workbench.action.gotoSymbol"
        },
        {
            "key": "shift+cmd+9",
            "command": "workbench.action.previousEditor"
        },
        {
            "key": "alt+cmd+left",
            "command": "-workbench.action.previousEditor"
        },
        {
            "key": "shift+cmd+0",
            "command": "workbench.action.nextEditor"
        },
        {
            "key": "alt+cmd+right",
            "command": "-workbench.action.nextEditor"
        },
        {
            "key": "shift+cmd+o",
            "command": "workbench.action.showCommands"
        },
        {
            "key": "shift+cmd+p",
            "command": "-workbench.action.showCommands"
        },
        {
            "key": "cmd+d",
            "command": "editor.action.copyLinesDownAction",
            "when": "editorTextFocus && !editorReadonly"
        }
    ]
    

    相关文章

      网友评论

          本文标题:Vscode 个人自定义快捷键

          本文链接:https://www.haomeiwen.com/subject/lowphxtx.html