Skip to content

Instantly share code, notes, and snippets.

@robole
Created March 1, 2022 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robole/d50e8cc8327f1bba3dc93231faef7ba5 to your computer and use it in GitHub Desktop.
Save robole/d50e8cc8327f1bba3dc93231faef7ba5 to your computer and use it in GitHub Desktop.
VS Code keyboard shortcuts
[
{
"key": "ctrl+k v",
"command": "-preview.showPreviewToSide",
"when": "!notebookEditorFocused && !terminalFocus"
},
{
"key": "ctrl+shift+v",
"command": "markdown.showPreviewToSide",
"when": "editorTextFocus && editorLangId == markdown"
},
{
"key": "ctrl+`",
"command": "workbench.action.terminal.new"
},
{
"key": "ctrl+shift+oem_3",
"command": "-workbench.action.terminal.new"
},
{
"key": "pageup",
"command": "workbench.action.terminal.scrollUp",
"when": "terminalFocus"
},
{
"key": "ctrl+alt+pageup",
"command": "-workbench.action.terminal.scrollUp",
"when": "terminalFocus"
},
{
"key": "pagedown",
"command": "workbench.action.terminal.scrollDown",
"when": "terminalFocus"
},
{
"key": "ctrl+alt+pagedown",
"command": "-workbench.action.terminal.scrollDown",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+q",
"command": "marky-edit.toggleQuote",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+shift+c",
"command": "marky-edit.toggleInlineCode",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+shift+k",
"command": "marky-edit.toggleCodeBlock",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+shift+[",
"command": "marky-edit.toggleUnorderedList",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+shift+]",
"command": "marky-edit.toggleOrderedList",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+shift+h",
"command": "marky-edit.toggleHorizontalRule",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+k",
"command": "marky-edit.toggleLink",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+shift+i",
"command": "marky-edit.toggleImage",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+1",
"command": "marky-edit.toggleHeading1",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+2",
"command": "marky-edit.toggleHeading2",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+3",
"command": "marky-edit.toggleHeading3",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+4",
"command": "marky-edit.toggleHeading4",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+5",
"command": "marky-edit.toggleHeading5",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+6",
"command": "marky-edit.toggleHeading6",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+shift+s",
"command": "marky-edit.toggleDelete",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+t",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus && editorLangId == markdown",
"args": {
"langId": "markdown",
"name": "Insert table"
}
},
{
"key": "ctrl+shift+x",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus && editorLangId == markdown",
"args": {
"langId": "markdown",
"name": "Insert task list"
}
},
{
"key": "ctrl+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "ctrl+p",
"command": "filebunny.openFile"
},
{
"key": "ctrl+n",
"command": "-workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+n",
"command": "filebunny.createFile"
},
{
"key": "Left",
"command": "-filebunny.back",
"when": "inFileBunny"
},
{
"key": "Shift+Tab",
"command": "filebunny.back",
"when": "inFileBunny"
},
{
"key": "Right",
"command": "-filebunny.next",
"when": "inFileBunny"
},
{
"key": "ctrl+o",
"command": "-workbench.action.files.openFile"
},
{
"key": "ctrl+o",
"command": "filebunny.openFolder"
},
{
"key": "ctrl+alt+up",
"command": "editor.emmet.action.incrementNumberByOne",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+down",
"command": "editor.emmet.action.decrementNumberByOne",
"when": "editorTextFocus"
},
{
"key": "ctrl+up",
"command": "editor.emmet.action.incrementNumberByOneTenth",
"when": "editorTextFocus"
},
{
"key": "ctrl+down",
"command": "editor.emmet.action.decrementNumberByOneTenth",
"when": "editorTextFocus"
},
{
"key": "shift+down",
"command": "editor.emmet.action.decrementNumberByTen",
"when": "editorTextFocus"
},
{
"key": "shift+up",
"command": "editor.emmet.action.incrementNumberByTen",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+v",
"command": "-workbench.action.terminal.paste",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+v",
"command": "workbench.action.terminal.paste",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+tab",
"command": "workbench.action.nextPanelView",
"when": "panelFocus"
},
{
"key": "ctrl+w",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+w",
"command": "workbench.action.terminal.killEditor",
"when": "terminalEditorFocus && terminalHasBeenCreated && resourceScheme == 'vscode-terminal' || terminalEditorFocus && terminalProcessSupported && resourceScheme == 'vscode-terminal'"
},
{
"key": "ctrl+w",
"command": "-workbench.action.terminal.killEditor",
"when": "terminalEditorFocus && terminalFocus && terminalHasBeenCreated && resourceScheme == 'vscode-terminal' || terminalEditorFocus && terminalFocus && terminalProcessSupported && resourceScheme == 'vscode-terminal'"
},
{
"key": "ctrl+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+d",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+shift+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment