Skip to content

Instantly share code, notes, and snippets.

@skapxd
Last active October 25, 2022 13:50
Show Gist options
  • Save skapxd/1bf5681e3dbc3882c3a1a49601fdab67 to your computer and use it in GitHub Desktop.
Save skapxd/1bf5681e3dbc3882c3a1a49601fdab67 to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+up",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "f12",
"command": "editor.action.openLink",
"when": "editorTextFocus && editorLangId == 'markdown'"
},
{
"key": "ctrl+down",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
},
{
"key": "ctrl+alt+m",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "ctrl+alt+k",
"command": "workbench.action.terminal.kill"
},
{
"key": "ctrl+alt+numpad_subtract",
"command": "workbench.files.action.collapseExplorerFolders"
},
{
"key": "left",
"command": "-notification.collapse",
"when": "notificationFocus"
},
{
"key": "alt+f alt+i",
"command": "explorer.newFile"
},
{
"key": "alt+f alt+o",
"command": "explorer.newFolder"
},
{
"key": "ctrl+[Semicolon]",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+f4",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "ctrl+shift+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "ctrl+shift+[Semicolon]",
"command": "workbench.action.terminal.newInActiveWorkspace"
},
{
"key": "ctrl+]",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+7",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+numpad_subtract",
"command": "editor.fold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+[",
"command": "-editor.fold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+shift+numpad_add",
"command": "editor.unfold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+]",
"command": "-editor.unfold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "shift+alt+f",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "ctrl+shift+i",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment