Skip to content

Instantly share code, notes, and snippets.

@saiashirwad
Created May 2, 2023 08:28
Show Gist options
  • Save saiashirwad/f1f63440e132b611cb0239e0b07c59ce to your computer and use it in GitHub Desktop.
Save saiashirwad/f1f63440e132b611cb0239e0b07c59ce to your computer and use it in GitHub Desktop.
[
{
"command": "-workbench.action.gotoLine",
"key": "ctrl+g"
},
{
"command": "-extension.vim_ctrl+g",
"key": "ctrl+g",
"when": "editorTextFocus && vim.active && vim.use<C-g> && !inDebugRepl"
},
{
"command": "workbench.view.scm",
"key": "alt+g",
"when": "workbench.scm.active && !gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"command": "workbench.files.action.focusFilesExplorer",
"key": "alt+e"
},
{
"command": "-workbench.action.quickOpen",
"key": "ctrl+e"
},
{
"command": "editor.action.revealDefinitionAside",
"key": "ctrl+g ctrl+g",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"command": "-editor.action.revealDefinitionAside",
"key": "ctrl+k f12",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"command": "editor.action.smartSelect.expand",
"key": "alt+k",
"when": "editorTextFocus"
},
{
"command": "-editor.action.smartSelect.expand",
"key": "shift+alt+right",
"when": "editorTextFocus"
},
{
"command": "editor.action.smartSelect.shrink",
"key": "alt+j",
"when": "editorTextFocus"
},
{
"command": "-editor.action.smartSelect.shrink",
"key": "shift+alt+left",
"when": "editorTextFocus"
},
{
"command": "editor.action.showHover",
"key": "shift+k",
"when": "inputFocus && vim.mode == 'Normal'"
},
{
"command": "workbench.action.nextEditor",
"key": "tab",
"when": "vim.mode == 'Normal' && editorTextFocus"
},
{
"command": "workbench.action.previousEditor",
"key": "shift+tab",
"when": "vim.mode == 'Normal' && editorTextFocus"
},
{
"command": "selectNextSuggestion",
"key": "ctrl+n",
"when": "suggestWidgetVisible"
},
{
"command": "selectPrevSuggestion",
"key": "ctrl+p",
"when": "suggestWidgetVisible"
},
{
"command": "workbench.action.quickOpenSelectNext",
"key": "ctrl+n",
"when": "inQuickOpen"
},
{
"command": "workbench.action.quickOpenSelectPrevious",
"key": "ctrl+p",
"when": "inQuickOpen"
},
{
"command": "workbench.action.terminal.toggleTerminal",
"key": "alt+\\",
"when": "terminal.active"
},
{
"command": "-workbench.action.terminal.toggleTerminal",
"key": "ctrl+`",
"when": "terminal.active"
},
{
"command": "selectNextCodeAction",
"key": "ctrl+n",
"when": "codeActionMenuVisible"
},
{
"command": "selectPrevCodeAction",
"key": "ctrl+p",
"when": "codeActionMenuVisible"
},
{
"command": "git.push",
"key": "ctrl+g p"
},
{
"command": "git.commit",
"key": "ctrl+g c"
},
{
"command": "-editor.toggleFold",
"key": "ctrl+k ctrl+l",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.action.trimTrailingWhitespace",
"key": "ctrl+k ctrl+x",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "-editor.unfoldAll",
"key": "ctrl+k ctrl+j",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.unfoldAllMarkerRegions",
"key": "ctrl+k ctrl+9",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.unfoldAllExcept",
"key": "ctrl+k ctrl+=",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.unfoldRecursively",
"key": "ctrl+k ctrl+]",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-workbench.action.closeAllGroups",
"key": "ctrl+k ctrl+shift+w"
},
{
"command": "-workbench.action.closeAllEditors",
"key": "ctrl+k ctrl+w"
},
{
"command": "-workbench.action.closeUnmodifiedEditors",
"key": "ctrl+k u"
},
{
"command": "workbench.action.moveActiveEditorGroupDown",
"key": "ctrl+k k"
},
{
"command": "-workbench.action.moveActiveEditorGroupDown",
"key": "ctrl+k down"
},
{
"command": "workbench.action.moveActiveEditorGroupRight",
"key": "ctrl+k l"
},
{
"command": "-workbench.action.moveActiveEditorGroupRight",
"key": "ctrl+k right"
},
{
"command": "workbench.action.moveActiveEditorGroupUp",
"key": "ctrl+k j"
},
{
"command": "-workbench.action.moveActiveEditorGroupUp",
"key": "ctrl+k up"
},
{
"command": "workbench.action.moveActiveEditorGroupLeft",
"key": "ctrl+k h"
},
{
"command": "-workbench.action.moveActiveEditorGroupLeft",
"key": "ctrl+k left"
},
{
"command": "-workbench.action.splitEditorInGroup",
"key": "ctrl+k ctrl+shift+\\",
"when": "activeEditorCanSplitInGroup"
},
{
"command": "-workbench.action.unpinEditor",
"key": "ctrl+k shift+enter",
"when": "activeEditorIsPinned"
},
{
"command": "-workbench.action.closeFolder",
"key": "ctrl+k f",
"when": "emptyWorkspaceSupport && workbenchState != 'empty'"
},
{
"command": "workbench.action.focusAboveGroup",
"key": "ctrl+k ctrl+j"
},
{
"command": "-workbench.action.focusAboveGroup",
"key": "ctrl+k ctrl+up"
},
{
"command": "-workbench.action.focusBelowGroup",
"key": "ctrl+k ctrl+down"
},
{
"command": "-editor.action.defineKeybinding",
"key": "ctrl+k ctrl+k",
"when": "editorTextFocus && !editorReadonly && editorLangId == 'jsonc'"
},
{
"command": "workbench.action.focusLeftGroup",
"key": "ctrl+k ctrl+h"
},
{
"command": "-workbench.action.focusLeftGroup",
"key": "ctrl+k ctrl+left"
},
{
"command": "workbench.action.focusRightGroup",
"key": "ctrl+k ctrl+l"
},
{
"command": "-workbench.action.focusRightGroup",
"key": "ctrl+k ctrl+right"
},
{
"command": "-workbench.action.output.toggleOutput",
"key": "ctrl+k ctrl+h",
"when": "workbench.panel.output.active"
},
{
"command": "-git.revertSelectedRanges",
"key": "ctrl+k ctrl+r",
"when": "isInDiffEditor"
},
{
"command": "-git.stageSelectedRanges",
"key": "ctrl+k ctrl+alt+s",
"when": "isInDiffEditor"
},
{
"command": "-git.unstageSelectedRanges",
"key": "ctrl+k ctrl+n",
"when": "isInDiffEditor"
},
{
"command": "-workbench.action.navigateToLastEditLocation",
"key": "ctrl+k ctrl+q"
},
{
"command": "-editor.foldLevel1",
"key": "ctrl+k ctrl+1",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldLevel2",
"key": "ctrl+k ctrl+2",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldLevel3",
"key": "ctrl+k ctrl+3",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldLevel4",
"key": "ctrl+k ctrl+4",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldLevel5",
"key": "ctrl+k ctrl+5",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldLevel6",
"key": "ctrl+k ctrl+6",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldLevel7",
"key": "ctrl+k ctrl+7",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldRecursively",
"key": "ctrl+k ctrl+[",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldAll",
"key": "ctrl+k ctrl+0",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldAllBlockComments",
"key": "ctrl+k ctrl+/",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldAllMarkerRegions",
"key": "ctrl+k ctrl+8",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.foldAllExcept",
"key": "ctrl+k ctrl+-",
"when": "editorTextFocus && foldingEnabled"
},
{
"command": "-editor.action.formatSelection",
"key": "ctrl+k ctrl+f",
"when": "editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"command": "-workbench.action.keybindingsReference",
"key": "ctrl+k ctrl+r"
},
{
"command": "-markdown.showPreviewToSide",
"key": "ctrl+k v",
"when": "!notebookEditorFocused && editorLangId == 'markdown'"
},
{
"command": "search.action.focusNextSearchResult",
"key": "alt+s alt+n",
"when": "hasSearchResult || inSearchEditor"
},
{
"command": "-search.action.focusNextSearchResult",
"key": "f4",
"when": "hasSearchResult || inSearchEditor"
},
{
"command": "search.action.focusPreviousSearchResult",
"key": "alt+s alt+p",
"when": "hasSearchResult || inSearchEditor"
},
{
"command": "-search.action.focusPreviousSearchResult",
"key": "shift+f4",
"when": "hasSearchResult || inSearchEditor"
},
{
"command": "search.action.viewAsList",
"key": "alt+s alt+l"
},
{
"command": "workbench.action.focusFirstEditorGroup",
"key": "alt+1"
},
{
"command": "-workbench.action.focusFirstEditorGroup",
"key": "ctrl+1"
},
{
"command": "workbench.action.focusEighthEditorGroup",
"key": "alt+8"
},
{
"command": "-workbench.action.focusEighthEditorGroup",
"key": "ctrl+8"
},
{
"command": "workbench.action.focusSecondEditorGroup",
"key": "alt+2"
},
{
"command": "-workbench.action.focusSecondEditorGroup",
"key": "ctrl+2"
},
{
"command": "workbench.action.focusThirdEditorGroup",
"key": "alt+3"
},
{
"command": "-workbench.action.focusThirdEditorGroup",
"key": "ctrl+3"
},
{
"command": "workbench.action.focusFourthEditorGroup",
"key": "alt+4"
},
{
"command": "-workbench.action.focusFourthEditorGroup",
"key": "ctrl+4"
},
{
"command": "workbench.action.focusFifthEditorGroup",
"key": "alt+5"
},
{
"command": "-workbench.action.focusFifthEditorGroup",
"key": "ctrl+5"
},
{
"command": "explorer.newFile",
"key": "alt+n"
},
{
"command": "explorer.newFile",
"key": "ctrl+n",
"when": "explorerViewletFocus"
},
{
"key": "ctrl+shift+b",
"command": "-workbench.action.tasks.build",
"when": "taskCommandsRegistered"
},
{
"key": "ctrl+r",
"command": "-workbench.action.reloadWindow",
"when": "isDevelopment"
},
{
"key": "ctrl+r",
"command": "-workbench.action.openRecent"
},
{
"key": "ctrl+r ctrl+t",
"command": "workbench.action.tasks.runTask"
},
{
"key": "ctrl+shift+n",
"command": "explorer.newFolder"
},
{
"key": "alt+b",
"command": "workbench.action.toggleAuxiliaryBar"
},
{
"key": "alt+c alt+l",
"command": "search.action.clearSearchResults"
},
{
"key": "ctrl+m",
"command": "-editor.action.toggleTabFocusMode"
},
{
"key": "ctrl+m",
"command": "-extension.vim_ctrl+m",
"when": "editorTextFocus && vim.active && vim.use<C-m> && !inDebugRepl || vim.active && vim.use<C-m> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-m> && !inDebugRepl && vim.mode == 'SearchInProgressMode'"
},
{
"key": "shift+alt+k",
"command": "editor.emmet.action.balanceOut"
},
{
"key": "shift+alt+j",
"command": "editor.emmet.action.balanceIn"
},
{
"key": "alt+q",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "alt+f",
"command": "workbench.action.findInFiles"
},
{
"key": "alt+h",
"command": "timeline.focus"
},
{
"key": "alt+h",
"command": "-gitlens.showQuickFileHistory",
"when": "!gitlens:disabled && config.gitlens.keymap == 'alternate'"
},
{
"key": "alt+h",
"command": "-testing.toggleTestingPeekHistory",
"when": "testing.isPeekVisible"
},
{
"key": "alt+x",
"command": "workbench.view.extensions",
"when": "viewContainer.workbench.view.extensions.enabled"
},
{
"key": "ctrl+shift+x",
"command": "-workbench.view.extensions",
"when": "viewContainer.workbench.view.extensions.enabled"
},
{
"key": "alt+o",
"command": "outline.focus"
},
{
"key": "ctrl+b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "alt+b",
"command": "-gitlens.toggleFileBlame",
"when": "editorTextFocus && config.gitlens.keymap == 'alternate' && gitlens:activeFileStatus =~ /blameable/"
},
{
"key": "shift+alt+b",
"command": "-gitlens.toggleCodeLens",
"when": "editorTextFocus && !gitlens:disabled && !gitlens:disabledToggleCodeLens && config.gitlens.keymap == 'alternate'"
},
{
"key": "ctrl+shift+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "ctrl+shift+e",
"command": "-workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "alt+t",
"command": "workbench.files.action.focusOpenEditorsView",
"when": "workbench.explorer.openEditorsView.active"
},
{
"key": "ctrl+k e",
"command": "-workbench.files.action.focusOpenEditorsView",
"when": "workbench.explorer.openEditorsView.active"
},
{
"key": "ctrl+enter",
"command": "-github.copilot.generate",
"when": "editorTextFocus && github.copilot.activated"
},
{
"key": "alt+\\",
"command": "-editor.action.inlineSuggest.trigger",
"when": "config.github.copilot.inlineSuggest.enable && editorTextFocus && !editorHasSelection && !inlineSuggestionsVisible"
},
{
"key": "alt+h",
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+up",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+left",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+l",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+down",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+`",
"command": "workbench.action.terminal.new",
"when": "terminalProcessSupported || terminalWebExtensionContributedProfile"
},
{
"key": "ctrl+shift+`",
"command": "-workbench.action.terminal.new",
"when": "terminalProcessSupported || terminalWebExtensionContributedProfile"
},
{
"key": "alt+j",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus"
},
{
"key": "ctrl+pagedown",
"command": "-workbench.action.terminal.focusNext",
"when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus"
},
{
"key": "alt+k",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus"
},
{
"key": "ctrl+pageup",
"command": "-workbench.action.terminal.focusPrevious",
"when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus"
},
{
"key": "alt+p",
"command": "workbench.action.quickOpenTerm"
},
{
"key": "alt+q",
"command": "workbench.action.closeGroup",
"when": "activeEditorGroupEmpty && multipleEditorGroups"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeGroup",
"when": "activeEditorGroupEmpty && multipleEditorGroups"
},
{
"key": "ctrl+k ctrl+m",
"command": "editor.action.toggleMinimap"
},
{
"key": "ctrl+c ctrl+l",
"command": "editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+alt+h",
"command": "C_Cpp.SwitchHeaderSource",
"when": "editorTextFocus && editorLangId == 'c' || editorTextFocus && editorLangId == 'cpp' || editorTextFocus && editorLangId == 'cuda-cpp'"
},
{
"key": "alt+o",
"command": "-C_Cpp.SwitchHeaderSource",
"when": "editorTextFocus && editorLangId == 'c' || editorTextFocus && editorLangId == 'cpp' || editorTextFocus && editorLangId == 'cuda-cpp'"
},
{
"key": "ctrl+alt+o",
"command": "-workbench.action.remote.showMenu"
},
{
"key": "ctrl+alt+h",
"command": "-abracadabra.toggleHighlight",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+h",
"command": "-abracadabra.removeAllHighlights",
"when": "editorTextFocus"
},
{
"key": "ctrl+g ctrl+r",
"command": "editor.action.goToReferences",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+f12",
"command": "-editor.action.goToReferences",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "alt+=",
"command": "-increaseSearchEditorContextLines",
"when": "inSearchEditor"
},
{
"key": "alt+=",
"command": "workbench.action.increaseViewWidth",
},
{
"key": "alt+-",
"command": "workbench.action.decreaseViewWidth"
},
{
"key": "alt+-",
"command": "-decreaseSearchEditorContextLines",
"when": "inSearchEditor"
},
{
"key": "ctrl+; ctrl+e",
"command": "-testing.debugFailTests"
},
{
"key": "ctrl+; e",
"command": "-testing.reRunFailTests"
},
{
"key": "ctrl+shift+alt+e",
"command": "-copilot-labs.use-brush-picker",
"when": "editorTextFocus"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpenNavigateNextInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "ctrl+shift+e",
"command": "-workbench.action.quickOpenNavigatePreviousInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "ctrl+l ctrl+e",
"command": "-latex-workshop.shortcut.emph",
"when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^rsweave$|^jlweave$|^pweave$/"
},
{
"key": "ctrl+g ctrl+n",
"command": "editor.action.marker.next",
"when": "editorFocus"
},
{
"key": "alt+f8",
"command": "-editor.action.marker.next",
"when": "editorFocus"
},
{
"key": "ctrl+g ctrl+p",
"command": "editor.action.marker.prev",
"when": "editorFocus"
},
{
"key": "shift+alt+f8",
"command": "-editor.action.marker.prev",
"when": "editorFocus"
},
{
"key": "ctrl+g ctrl+l",
"command": "editor.action.sourceAction"
},
{
"key": "alt+s alt+k",
"command": "editor.action.transformToSnakecase"
},
{
"key": "alt+c alt+k",
"command": "editor.action.transformToCamelcase"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment