Skip to content

Instantly share code, notes, and snippets.

@RomiC
Created February 27, 2020 06:49
Show Gist options
  • Save RomiC/fb9b95fe1df1e6892e7c92f710554f96 to your computer and use it in GitHub Desktop.
Save RomiC/fb9b95fe1df1e6892e7c92f710554f96 to your computer and use it in GitHub Desktop.
VSCode keybindings "when"-conditions list (includes some plugins)
acceptSuggestionOnEnter
accessibilityHelpWidgetVisible
accessibilityModeEnabled
activeEditor == 'WebviewEditor'
activeEditor == 'workbench.editor.extension'
activeEditorGroupEmpty
activePanel == 'refactorPreview'
atEndOfWord
breadcrumbsActive
breadcrumbsPossible
breadcrumbsVisible
breakpointSelected
breakpointsFocused
breakpointWidgetVisible
callHierarchyVisible
cancellableOperation
commentEditorFocused
config.breadcrumbs.enabled
config.editor.rename.enablePreview
config.editor.stablePeek
config.editor.tabCompletion == 'on'
config.emmet.triggerExpansionOnTab
config.gitlens.keymap == 'alternate'
config.gitlens.keymap == 'chorded'
debugState = 'inactive'
debugState == 'running'
debugState == 'stopped'
debugType == 'chrome'
debugType == 'node'
debugType == 'node2'
dirtyDiffVisible
editorFocus
editorHasCallHierarchyProvider
editorHasCodeActionsProvider
editorHasCompletionItemProvider
editorHasDefinitionProvider
editorHasDocumentFormattingProvider
editorHasDocumentSelectionFormattingProvider
editorHasImplementationProvider
editorHasMultipleSelections
editorHasReferenceProvider
editorHasRenameProvider
editorHasSelection
editorHasSignatureHelpProvider
editorIsOpen
editorLangId == 'jsonc'
editorLangId == 'markdown'
editorReadonly
editorTabMovesFocus
editorTextFocus
explorerResourceCut
explorerResourceIsFolder
explorerResourceIsRoot
explorerResourceMoveableToTrash
explorerResourceReadonly
explorerViewletCompressedFirstFocus
explorerViewletCompressedFocus
explorerViewletCompressedLastFocus
explorerViewletFocus
explorerViewletVisible
expressionSelected
fileMatchFocus
fileMatchOrFolderMatchFocus
fileMatchOrFolderMatchWithResourceFocus
fileMatchOrMatchFocus
filesExplorerFocus
findInputFocussed
findWidgetVisible
firstMatchFocus
focusedCustomEditorIsEditable
focusedView =~ /^gitlens\\.views\\.compare/
focusedView =~ /^gitlens\\.views\\.fileHistory/
focusedView =~ /^gitlens\\.views\\.lineHistory/
focusedView =~ /^gitlens\\.views\\.repositories/
focusedView =~ /^gitlens\\.views\\.search/
folderMatchFocus
foldingEnabled
gitlens:activeFileStatus =~ /blameable/
gitlens:activeFileStatus =~ /revision/
gitlens:activeFileStatus =~ /tracked/
gitlens:canToggleCodeLens
gitlens:enabled
gitlens:key:,
gitlens:key:.
gitlens:key:alt+left
gitlens:key:alt+right
gitlens:key:ctrl+left
gitlens:key:ctrl+right
gitlens:key:escape
gitlens:key:left
gitlens:key:right
hasNextTabstop
hasOtherSuggestions
hasPrevTabstop
hasSearchResult
hasSnippetCompletions
hasSymbols
hasWordHighlights
historyNavigationEnabled
historyNavigationWidget
inBreakpointWidget
inDebugMode
inDebugRepl
inEditorsPicker
inFilesPicker
inKeybindings
inKeybindingsSearch
inputBoxFocus
inputFocus
inQuickOpen
inRecentFilesPicker
inReferenceSearchEditor
inSearchEditor
inSettingsEditor
inSnippetMode
interactivePlaygroundFocus
interfaceOverviewVisible
inViewsPicker
inZenMode
isDevelopment
isInDiffEditor
isInDiffLeftEditor
isInDiffRightEditor
isInEmbeddedEditor
keybindingFocus
listFocus
listHasSelectionOrFocus
listSupportsKeyboardNavigation
listSupportsMultiselect
markersNavigationVisible
matchFocus
messageVisible
multipleEditorGroups
notificationCenterVisible
notificationFocus
notificationToastsVisible
panelFocus
parameterHintsMultipleSignatures
parameterHintsVisible
previewSearchEditor
problemFocus
problemsFilterFocus
problemsViewFocus
refactorPreview.enabled
refactorPreview.hasCheckedChanges
reference-list.hasResult
referenceSearchVisible
remoteFileDialogVisible
renameInputVisible
replaceActive
replaceInputBoxFocus
replaceInputFocussed
scmRepository
searchInputBoxFocus
searchViewletFocus
searchViewletVisible
settingsTocRowFocus
suggestionMakesTextEdit
suggestWidgetMultipleSuggestions
suggestWidgetVisible
supportedCodeAction =~ /(\\s|^)quickfix\\b/
supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/
terminalA11yTreeFocus
terminalFindWidgetFocused
terminalFocus
terminalTextSelected
textCompareEditorVisible
textInputFocus
tunnelCloseable
tunnelType == 'Detected'
tunnelType == 'Forwarded'
tunnelType == 'Forwarded'
tunnelViewFocus
variablesFocused
vim.mode = 'Insert'
vim.mode == 'CommandlineInProgress'
vim.mode == 'SearchInProgressMode'
vim.overrideCmdV
vim.overrideCopy
vim.overrideCtrlC
vim.use<C-[>
vim.use<C-]>
vim.use<C-a>
vim.use<C-b>
vim.use<C-c>
vim.use<C-e>
vim.use<C-f>
vim.use<C-g>
vim.use<C-h>
vim.use<C-i>
vim.use<C-j>
vim.use<C-k>
vim.use<C-l>
vim.use<C-n>
vim.use<C-o>
vim.use<C-p>
vim.use<C-pagedown>
vim.use<C-pageup>
vim.use<C-q>
vim.use<C-r>
vim.use<C-shift+2>
vim.use<C-t>
vim.use<C-u>
vim.use<C-v>
vim.use<C-w>
vim.use<C-x>
vim.use<C-y>
vim.use<D-a>
vim.use<D-c>
vim.use<D-d>
vim.use<D-left>
vim.use<D-right>
vim.use<D-v>
vim.use<shift+BS>
watchExpressionsFocused
webviewFindWidgetFocused
webviewFindWidgetVisible
webviewHasOwnEditFunctions
workbench.explorer.openEditorsView.active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment