Skip to content

Instantly share code, notes, and snippets.

@lundeen-bryan
Last active September 21, 2023 19:30
Show Gist options
  • Save lundeen-bryan/17b8b86eb6bd7dc92fba6806fe66f681 to your computer and use it in GitHub Desktop.
Save lundeen-bryan/17b8b86eb6bd7dc92fba6806fe66f681 to your computer and use it in GitHub Desktop.
vs code keybindings
// Place your key bindings in this file to override the defaultsauto
[
{
"key": "ctrl+shift+u",
"command": "workbench.action.output.toggleOutput",
"when": "workbench.panel.output.active"
},
{
"key": "ctrl+k tab",
"command": "type",
"args": { "text": "\t" },
"when": "editorTextFocus"
},
{
"command": "workbench.action.reopenWithEditor",
"key": "ctrl+k ctrl+m"
},
{
"key": "alt+t",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "cd '${workspaceFolder}'"
}
},
{
"command": "workbench.action.closePanel",
"key": "ctrl+alt+x"
},
{
"when": "editorTextFocus && !editorReadonly",
"command": "editor.action.blockComment",
"key": "ctrl+shift+/"
},
{
"when": "editorTextFocus && !editorReadonly",
"key": "ctrl+/",
"command": "-editor.action.blockComment"
},
{
"key": "shift+alt+a",
"when": "editorTextFocus && !editorReadonly",
"command": "editor.action.commentLine"
},
{
"command": "regionfolder.collapseAllRegions",
"key": "ctrl+alt+r"
},
{
"command": "editor.action.transformToLowercase",
"key": "ctrl+f3 l"
},
{
"command": "editor.action.transformToTitlecase",
"key": "ctrl+f3 t"
},
{
"command": "editor.action.transformToUppercase",
"key": "ctrl+f3 u"
},
{
"command": "workbench.action.toggleMaximizedPanel",
"key": "ctrl+alt+m"
},
{
"command": "editor.action.toggleWordWrap",
"key": "ctrl+alt+w"
},
{
"key": "ctrl+alt+w",
"command": "-editor.action.toggleWordWrap"
},
{
"command": "toggleVim",
"key": "ctrl+alt+v i"
},
{
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen",
"key": "ctrl+j"
},
{
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus",
"command": "selectNextSuggestion",
"key": "ctrl+j"
},
{
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen",
"key": "ctrl+k"
},
{
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus",
"command": "selectPrevSuggestion",
"key": "ctrl+k"
},
{
"command": "workbench.action.terminal.focus",
"key": "ctrl+shift+`"
},
{
"key": "ctrl+w",
"when": "activeEditorGroupEmpty && multipleEditorGroups",
"command": "-workbench.action.closeGroup"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "ctrl+w",
"when": "!editorIsOpen && !multipleEditorGroups",
"command": "-workbench.action.closeWindow"
},
{
"command": "extension.launch",
"key": "ctrl+shift+b"
},
{
"key": "ctrl+shift+l",
"command": "-extension.launch"
},
{
"command": "extension.surroundSelection",
"key": "ctrl+alt+s"
},
{
"key": "shift+alt+p",
"command": "prettier-sql-vscode.format-selection"
},
{
"key": "shift+alt+p",
"command": "-projectManager.listProjects"
},
{
"command": "python.execInTerminal-icon",
"key": "ctrl+alt+n"
},
{
"command": "jupyter.insertCellBelow",
"when": "editorTextFocus && jupyter.hascodecells && !jupyter.webExtension && !notebookEditorFocused",
"key": "ctrl+; b"
},
{
"when": "editorTextFocus && jupyter.hascodecells && !jupyter.webExtension && !notebookEditorFocused",
"key": "ctrl+; b",
"command": "-jupyter.insertCellBelow"
},
{
"command": "jupyter.notebookeditor.addcellbelow",
"key": "ctrl+alt+a"
},
{
"command": "extension.vs-color-picker",
"key": "ctrl+alt+p"
},
{
"when": "editorTextFocus",
"key": "alt+[",
"command": "-print-it.PrintIt"
},
{
"key": "ctrl+alt+n",
"command": "-newFile.createNewFile"
},
{
"key": "shift+alt+y",
"when": "editorHasSelection",
"command": "-simpleTranslate"
},
{
"command": "markdown-preview-enhanced.openPreview",
"when": "editorLangId == 'markdown'",
"key": "ctrl+shift+k v"
},
{
"when": "editorLangId == 'markdown'",
"key": "ctrl+shift+v",
"command": "-markdown-preview-enhanced.openPreview"
},
{
"command": "line-to-column.splitLine",
"key": "ctrl+shift+alt+l"
},
{
"key": "shift+'",
"when": "editorHasSelection && editorTextFocus",
"command": "-wrapSelection.quote.double"
},
{
"command": "extension.wrap",
"when": "editorHasSelection",
"key": "ctrl+alt+t"
},
{
"when": "editorHasSelection",
"key": "ctrl+t",
"command": "-extension.wrap"
},
{
"command": "ipython.createTerminal",
"key": "ctrl+shift+i p"
},
{
"key": "ctrl+shift+i c",
"command": "-ipython.createTerminal"
},
{
"command": "math.doMath",
"key": "ctrl+shift+m"
},
{
"key": "ctrl+shift+m",
"command": "-math.doMath"
},
{
"key": "shift+alt+t",
"command": "QuantifiedLeap.sqlTransformer",
"when": "editorFocus"
},
{
"when": "textInputFocus && !accessibilityModeEnabled",
"key": "ctrl+shift+right",
"command": "-cursorWordEndRightSelect"
},
{
"when": "textInputFocus && !accessibilityModeEnabled",
"key": "ctrl+shift+left",
"command": "-cursorWordLeftSelect"
},
{
"when": "textInputFocus && !accessibilityModeEnabled",
"key": "ctrl+left",
"command": "-cursorWordLeft"
},
{
"key": "ctrl+alt+n",
"command": "-code-runner.run"
},
{
"when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'",
"key": "ctrl+left",
"command": "-extension.vim_ctrl+left"
},
{
"when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'",
"key": "ctrl+right",
"command": "-extension.vim_ctrl+right"
},
{
"when": "textInputFocus && !accessibilityModeEnabled",
"key": "ctrl+right",
"command": "-cursorWordEndRight"
},
{
"key": "shift+alt+n",
"command": "mytime.newTask"
},
{
"when": "editorTextFocus",
"command": "editor.action.showHover",
"key": "ctrl+shift+k"
},
{
"when": "textInputFocus && !editorReadonly",
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines"
},
{
"key": "ctrl+; m",
"command": "notebook.cell.changeToMarkdown",
"when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'code'"
},
{
"key": "m",
"command": "-notebook.cell.changeToMarkdown",
"when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'code'"
},
{
"key": "ctrl+; y",
"command": "notebook.cell.changeToCode",
"when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'markup'"
},
{
"key": "y",
"command": "-notebook.cell.changeToCode",
"when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'markup'"
},
{
"key": "ctrl+; l",
"command": "notebook.cell.toggleLineNumbers",
"when": "notebookEditorFocused && !inputFocus && !notebookOutputInputFocused"
},
{
"key": "l",
"command": "-notebook.cell.toggleLineNumbers",
"when": "notebookEditorFocused && !inputFocus && !notebookOutputInputFocused"
},
{
"key": "shift+alt+e",
"command": "extension.exportExtensions"
},
{
"key": "ctrl+n",
"command": "-extension.vim_ctrl+n",
"when": "editorTextFocus && vim.active && vim.use<C-n> && !inDebugRepl || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'SearchInProgressMode'"
},
{
"key": "shift+alt+-",
"command": "workbench.files.action.collapseExplorerFolders"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+f3",
"command": "-editor.action.nextSelectionMatchFindAction",
"when": "editorFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment