VSCode Shortcut JSON
code: json
[
// ------------------------------ Disable ------------------------------
{
"key": "shift+cmd+w",
"command": "-workbench.action.closeWindow"
}, // I use cmd + w or :x
{
"key": "shift+cmd+v",
"command": "-markdown.extension.togglePreview",
"when": "!terminalFocus"
}, // for clipy
{
"key": "ctrl+space",
"command": "-toggleSuggestionDetails",
"when": "suggestWidgetVisible && textInputFocus"
}, // for mac input
{
"key": "alt+cmd+right",
"command": "-workbench.action.nextEditor"
},
// ------------------------------ Terminal ------------------------------
{
"key": "ctrl+`",
"command": "workbench.action.terminal.focus"
},
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
// ------------------------------ Task ------------------------------
{
"key": "shift+enter",
"command": "-nim.execSelectionInTerminal",
"when": "editorFocus && !findInputFocussed && !replaceInputFocussed && editorLangId == 'nim'"
},
{
"key": "cmd+ctrl+r",
"command": "workbench.action.tasks.build"
},
// ------------------------------ Suggest ------------------------------
{
"key": "ctrl+,",
"command": "toggleSuggestionDetails",
"when": "textInputFocus"
},
{
"key": "ctrl+,",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible"
},
{
"key": "esc",
"command": "hideSuggestWidget",
"when": "textInputFocus && suggestWidgetVisible"
},
{
"key": "ctrl+n",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+p",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
// ------------------------------ EditorGroup ------------------------------
{
"key": "cmd+1",
"command": "workbench.action.focusFirstEditorGroup"
}, // これだけデフォルトだと動かない
// ------------------------------------------------------------------
// ------------------------------ Tmux ------------------------------
// ------------------------------------------------------------------
// ------------------------------ Tmux Editor ------------------------------
{
"key": "ctrl+a h",
"command": "workbench.action.focusLeftGroup",
"when": "editorFocus"
},
{
"key": "cmd+k cmd+left",
"command": "-workbench.action.focusLeftGroup"
}, // Group Left Move
{
"key": "ctrl+a l",
"command": "workbench.action.focusRightGroup",
"when": "editorFocus"
},
{
"key": "cmd+k cmd+right",
"command": "-workbench.action.focusRightGroup"
}, // Group Right Move
{
"key": "ctrl+a j",
"command": "workbench.action.focusBelowGroup",
"when": "editorFocus"
},
{
"key": "cmd+k cmd+down",
"command": "-workbench.action.focusBelowGroup"
}, // Group Below Move
{
"key": "ctrl+a k",
"command": "workbench.action.focusAboveGroup",
"when": "editorFocus"
},
{
"key": "cmd+k cmd+up",
"command": "-workbench.action.focusAboveGroup"
}, // Group Above Move
{
"key": "ctrl+a shift+\\",
"command": "workbench.action.splitEditor",
"when": "editorFocus"
},
{
"key": "cmd+\\",
"command": "-workbench.action.splitEditor"
}, // Split Vertical
{
"key": "ctrl+a -",
"command": "workbench.action.splitEditorOrthogonal",
"when": "editorFocus"
},
{
"key": "cmd+k cmd+\\",
"command": "-workbench.action.splitEditorOrthogonal"
}, // Split Horizon
{
"key": "ctrl+a shift+l",
"command": "workbench.action.increaseViewWidth",
"when": "editorFocus"
},
{
"key": "ctrl+a shift+m",
"command": "workbench.action.decreaseViewWidth",
"when": "editorFocus"
}, // group width increase or decrease
{
"key": "ctrl+a shift+j",
"command": "workbench.action.increaseViewHeight",
"when": "editorFocus"
},
{
"key": "ctrl+a shift+k",
"command": "workbench.action.decreaseViewHeight",
"when": "editorFocus"
}, // group height increase or decrease
{
"key": "ctrl+a x",
"command": "workbench.action.closeActiveEditor",
"when": "editorFocus"
},
{
"key": "ctrl+a shift+x",
"command": "workbench.action.closeEditorsAndGroup",
"when": "editorFocus"
}, // delete Editor
{
"key": "ctrl+a shift+[",
"command": "workbench.action.moveEditorToPreviousGroup",
"when": "editorFocus"
},
{
"key": "ctrl+a shift+]",
"command": "workbench.action.moveEditorToNextGroup",
"when": "editorFocus"
}, // current editor to (next|previous) group
{
"key": "ctrl+a n",
"command": "workbench.action.focusNextGroup",
"when": "editorFocus"
},
{
"key": "ctrl+a p",
"command": "workbench.action.focusPreviousGroup",
"when": "editorFocus"
}, // current editor to (next|previous) group
{
"key": "ctrl+a [",
"command": "workbench.action.terminal.searchWorkspace",
"when": "terminalFocus && terminalProcessSupported && terminalTextSelected"
},
{
"key": "ctrl+a [",
"command": "workbench.action.findInFiles"
},
{
"key": "ctrl+a [",
"command": "workbench.view.search",
"when": "workbench.view.search.active && neverMatch =~ /doesNotMatch/"
}, // global serach
{
"key": "ctrl+a z",
"command": "workbench.action.maximizeEditor",
"when": "editorFocus"
}, // maximizeEditor
// ------------------------------ Change ------------------------------
{
"key": "cmd+k cmd+right",
"command": "workbench.action.editor.nextChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "cmd+k cmd+left",
"command": "workbench.action.editor.previousChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
// ------------------------------ Tmux Terminal ------------------------------
{
"key": "ctrl+a shift+\\",
"command": "workbench.action.terminal.split",
"when": "terminalFocus"
}, // split terminal in same Pane
{
"key": "ctrl+a -",
"command": "workbench.action.terminal.new",
"when": "terminalFocus"
}, // split terminal as New
{
"key": "ctrl+a n",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "ctrl+a p",
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
},
{
"key": "ctrl+a l",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "ctrl+a h",
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
}, // focus terminal in same pane
{
"key": "ctrl+a shift+n",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "ctrl+a shift+p",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
}, // focus terminal to next different pane
{
"key": "ctrl+a x",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
}, // delete terminal
{
"key": "ctrl+a shift+k",
"command": "workbench.action.terminal.resizePaneUp",
"when": "terminalFocus"
},
{
"key": "ctrl+a shift+j",
"command": "workbench.action.terminal.resizePaneDown",
"when": "terminalFocus"
}, // change terminalSize
{
"key": "ctrl+a j",
"command": "workbench.action.nextSideBarView",
"when": "sideBarFocus"
},
{
"key": "ctrl+a n",
"command": "workbench.action.nextSideBarView",
"when": "sideBarFocus"
},
{
"key": "ctrl+a k",
"command": "workbench.action.previousSideBarView",
"when": "sideBarFocus"
},
{
"key": "ctrl+a p",
"command": "workbench.action.previousSideBarView",
"when": "sideBarFocus"
},
{
"key": "ctrl+shift+p",
"command": "workbench.action.terminal.scrollUpPage",
"when": "terminalFocus && terminalHasBeenCreated && !terminalAltBufferActive || terminalFocus && terminalProcessSupported && !terminalAltBufferActive"
},
{
"key": "pageup",
"command": "-workbench.action.terminal.scrollUpPage",
"when": "terminalFocus && terminalHasBeenCreated && !terminalAltBufferActive || terminalFocus && terminalProcessSupported && !terminalAltBufferActive"
},
{
"key": "ctrl+shift+n",
"command": "workbench.action.terminal.scrollDownPage",
"when": "terminalFocus && terminalHasBeenCreated && !terminalAltBufferActive || terminalFocus && terminalProcessSupported && !terminalAltBufferActive"
},
{
"key": "pagedown",
"command": "-workbench.action.terminal.scrollDownPage",
"when": "terminalFocus && terminalHasBeenCreated && !terminalAltBufferActive || terminalFocus && terminalProcessSupported && !terminalAltBufferActive"
},
{
"key": "shift+cmd+u",
"command": "-workbench.action.output.toggleOutput",
"when": "workbench.panel.output.active"
},
{
"key": "shift+alt+3 n",
"command": "workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible"
},
{
"key": "alt+f5",
"command": "-workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible"
},
{
"key": "shift+alt+3 p",
"command": "workbench.action.compareEditor.previousChange",
"when": "textCompareEditorVisible"
},
{
"key": "shift+alt+f5",
"command": "-workbench.action.compareEditor.previousChange",
"when": "textCompareEditorVisible"
},
]