Skip to main content

Key bindings

Here are the default Glimpse key bindings.

Top level menu

KeyNameCommand
vSelect/expand regioneditor.action.smartSelect.grow
Commandsworkbench.action.showCommands
Last editor[ workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup, list.select ]
!Show terminalworkbench.action.terminal.focus
"Open new external terminalworkbench.action.terminal.openNativeConsole
'Show terminalworkbench.action.terminal.focus
*Search Selection in Files[ editor.action.addSelectionToNextFindMatch, workbench.action.findInFiles, search.action.focusSearchList ]
/Search in filesworkbench.action.findInFiles
;Toggle commenteditor.action.commentLine
0Focus on files explorerworkbench.files.action.focusFilesExplorer
1Focus 1st editor groupworkbench.action.focusFirstEditorGroup
2Focus 2nd editor groupworkbench.action.focusSecondEditorGroup
3Focus 3rd editor groupworkbench.action.focusThirdEditorGroup
4Focus 4th editor groupworkbench.action.focusFourthEditorGroup
5Focus 5th editor groupworkbench.action.focusFifthEditorGroup
6Focus 6th editor groupworkbench.action.focusSixthEditorGroup
7Focus 7th editor groupworkbench.action.focusSeventhEditorGroup
8Focus 8th editor groupworkbench.action.focusEighthEditorGroup

Configuration

KeyNameCommand
c cOpen settingsworkbench.action.openGlobalSettings
c COpen settings JSONworkbench.action.openSettingsJson
c gGlimpse: Configureglimpse.configure
c kOpen global key bindingsworkbench.action.openGlobalKeybindings
c KOpen global key bindings JSONworkbench.action.openGlobalKeybindingsFile
c lOpen language settingsworkbench.action.configureLanguageBasedSettings
c sConfigure user snippetsworkbench.action.openSnippets
c wOpen workspace settingsworkbench.action.openWorkspaceSettings
c WOpen workspace settings JSONworkbench.action.openWorkspaceSettingsFile

Comment

KeyNameCommand
C fFold all block commentseditor.foldAllBlockComments
C bToggle block commenteditor.action.blockComment
C lToggle line commenteditor.action.commentLine

Debug

KeyNameCommand
d cContinue debugworkbench.action.debug.continue
d CContinue to cursoreditor.debug.action.runToCursor
d dStart debugworkbench.action.debug.start
d DRun without debuggingworkbench.action.debug.run
d iStep intoworkbench.action.debug.stepInto
d jJump to cursordebug.jumpToCursor
d oStep outworkbench.action.debug.stepOut
d pPause debugworkbench.action.debug.pause
d RRestart debugworkbench.action.debug.restart
d sStep overworkbench.action.debug.stepOver
d SStop debugworkbench.action.debug.stop
d vREPLworkbench.debug.action.toggleRepl
d wFocus on watch viewworkbench.debug.action.focusWatchView
d WAdd to watcheditor.debug.action.selectionToWatch

Breakpoint

KeyNameCommand
d b bToggle breakpointeditor.debug.action.toggleBreakpoint
d b cAdd conditional breakpointeditor.debug.action.conditionalBreakpoint
d b dDelete breakpointdebug.removeBreakpoint
d b DDelete all breakpointsworkbench.debug.viewlet.action.removeAllBreakpoints
d b eEnable breakpointdebug.enableOrDisableBreakpoint
d b EEnable all breakpointsworkbench.debug.viewlet.action.enableAllBreakpoints
d b fAdd function breakpointworkbench.debug.viewlet.action.addFunctionBreakpointAction
d b iToggle inline breakpointeditor.debug.action.toggleInlineBreakpoint
d b nNext breakpointeditor.debug.action.goToNextBreakpoint
d b pPrevious breakpointeditor.debug.action.goToPreviousBreakpoint
d b sDisable breakpointdebug.enableOrDisableBreakpoint
d b SDisable all breakpointsworkbench.debug.viewlet.action.disableAllBreakpoints

Next breakpoint

KeyNameCommand
d b n nNext breakpointeditor.debug.action.goToNextBreakpoint
d b n pPrevious breakpointeditor.debug.action.goToPreviousBreakpoint

Previous breakpoint

KeyNameCommand
d b p nNext breakpointeditor.debug.action.goToNextBreakpoint
d b p pPrevious breakpointeditor.debug.action.goToPreviousBreakpoint

Diff/Compare

KeyNameCommand
D cCompare active file with clipboardworkbench.files.action.compareWithClipboard
D dCompare active file withworkbench.files.action.compareFileWith
D sCompare active file with savedworkbench.files.action.compareWithSaved
D wToggle ignore trim whitespacetoggle.diff.ignoreTrimWhitespace

Error

KeyNameCommand
e eShow erroreditor.action.showHover
e EShow all errorsworkbench.actions.view.problems
e fFix erroreditor.action.quickFix
e nNext erroreditor.action.marker.nextInFiles
e NPrevious erroreditor.action.marker.prevInFiles
e pPrevious erroreditor.action.marker.prevInFiles

Error transient

KeyNameCommand
e t fFix erroreditor.action.quickFix
e t nNext erroreditor.action.marker.nextInFiles
e t pPrevious erroreditor.action.marker.prevInFiles
e t NPrevious erroreditor.action.marker.prevInFiles

Editor

KeyNameCommand
E cClose active editorworkbench.action.closeActiveEditor
E CClose other editorsworkbench.action.closeOtherEditors
E eShow all editorsworkbench.action.showAllEditorsByMostRecentlyUsed
E EShow all editors in active groupworkbench.action.showEditorsInActiveGroup
E hPrevious editorworkbench.action.previousEditor
E HMove editor into left groupworkbench.action.moveEditorToLeftGroup
E jNext editorworkbench.action.nextEditor
E JMove editor into below groupworkbench.action.moveEditorToBelowGroup
E kPrevious editorworkbench.action.previousEditor
E KMove editor into above groupworkbench.action.moveEditorToAboveGroup
E lNext editorworkbench.action.nextEditor
E LMove editor into right groupworkbench.action.moveEditorToRightGroup
E nNew Untitled Editorworkbench.action.files.newUntitledFile
E pPin editorworkbench.action.pinEditor
E PUnpin editorworkbench.action.unpinEditor
E rRevert the current editorworkbench.action.files.revert
E sScratch editorworkbench.action.files.newUntitledFile
E TReopen closed editorworkbench.action.reopenClosedEditor
E 0First editor in groupworkbench.action.firstEditorInGroup
E 1First editor in groupworkbench.action.openEditorAtIndex1
E 22nd editor in groupworkbench.action.openEditorAtIndex2
E 33rd editor in groupworkbench.action.openEditorAtIndex3
E 44th editor in groupworkbench.action.openEditorAtIndex4
E 55th editor in groupworkbench.action.openEditorAtIndex5
E 66th editor in groupworkbench.action.openEditorAtIndex6
E 77th editor in groupworkbench.action.openEditorAtIndex7
E 88th editor in groupworkbench.action.openEditorAtIndex8
E 99th editor in groupworkbench.action.openEditorAtIndex9
E $Last editor in groupworkbench.action.lastEditorInGroup

New Editor in other Group

KeyNameCommand
E N hNew untitled editor (split left)[ workbench.action.splitEditorLeft, workbench.action.files.newUntitledFile, workbench.action.closeOtherEditors ]
E N jNew untitled editor (split down)[ workbench.action.splitEditorDown, workbench.action.files.newUntitledFile, workbench.action.closeOtherEditors ]
E N kNew untitled editor (split up)[ workbench.action.splitEditorUp, workbench.action.files.newUntitledFile, workbench.action.closeOtherEditors ]
E N lNew untitled editor (split right)[ workbench.action.splitEditorRight, workbench.action.files.newUntitledFile, workbench.action.closeOtherEditors ]

File

KeyNameCommand
f dDelete current file[ workbench.files.action.showActiveFileInExplorer, deleteFile ]
f eShow file in explorerworkbench.files.action.showActiveFileInExplorer
f fFind fileworkbench.action.quickOpen
f lChange file languageworkbench.action.editor.changeLanguageMode
f nNew fileexplorer.newFile
f oOpen withexplorer.openWith
f OOpen in OSrevealFileInOS
f pCopy Path of Active FilecopyFilePath
f PCopy Relative Path of Active FilecopyRelativeFilePath
f rRename file[ revealInExplorer, renameFile ]
f sSave fileworkbench.action.files.save
f SSave all filesworkbench.action.files.saveAll
f wOpen file in new windowworkbench.action.files.showOpenedFileInNewWindow

Format

KeyNameCommand
F cFormat changeseditor.action.formatChanges
F eFormat Editoreditor.action.formatDocument
F EFormat editor with formattereditor.action.formatDocument.multiple
F fFormat region or editoreditor.action.format
F sFormat selectioneditor.action.formatSelection
F SFormat selection with formattereditor.action.formatSelection.multiple

Git

KeyNameCommand
g aStage Changesgit.stageSelectedRanges
g AStage Selected Rangesgit.stageSelectedRanges
g bCheckoutgit.checkout
g cCommitgit.commit
g CClonegit.clone
g fFetchgit.fetch
g FPullgit.pull
g iInitialize repositorygit.init
g lShow log/timelinetimeline.focus
g mMergegit.merge
g pPublishgit.publish
g PPushgit.push
g sStatusworkbench.view.scm
g uUnstagegit.unstage
g UUnstage Selected Rangesgit.unstageSelectedRanges

Delete

KeyNameCommand
g d bDelete Branchgit.deleteBranch
g d tDelete Taggit.deleteTag
g d TDelete Remote Taggit.deleteRemoteTag

Merge conflict

KeyNameCommand
g M bAccept bothmerge-conflict.accept.both
g M BAccept all bothmerge-conflict.accept.all-both
g M cAccept currentmerge-conflict.accept.current
g M CAccept all currentmerge-conflict.accept.all-current
g M dCompare current conflictmerge-conflict.compare
g M iAccept incomingmerge-conflict.accept.incoming
g M IAccept all incomingmerge-conflict.accept.all-incoming
g M nNext Conflictmerge-conflict.next
g M NPrevious Conflictmerge-conflict.previous
g M sAccept selectionmerge-conflict.accept.selection

GitHub Copilot

KeyNameCommand
G cCopilot Chatworkbench.panel.chatSidebar.copilot
G eExplain thisgithub.copilot.interactiveEditor.explain
G fFix thisgithub.copilot.interactiveEditor.fix
G oOpen Completions Panelgithub.copilot.generate
G tToggle (Enable/Disable) Copilotgithub.copilot.toggleCopilot

Generate

KeyNameCommand
G g dGenerate Docsgithub.copilot.interactiveEditor.generateDocs
G g gGenerate Thisgithub.copilot.interactiveEditor.generate
G g tGenerate Testsgithub.copilot.interactiveEditor.generateTests

Help

KeyNameCommand
h dOpen VSCode Documentationworkbench.action.openDocumentationUrl
h gOpen Glimpse Documentationglimpse.openDocs
h hDescribe thing at pointeditor.action.showHover
h iReport VSCode Issueworkbench.action.openIssueReporter
h kOpen global key bindingsworkbench.action.openGlobalKeybindings
h tOpen VSCode Tutorialworkbench.action.showInteractivePlayground

Insert

KeyNameCommand
i jInsert line beloweditor.action.insertLineAfter
i kInsert line aboveeditor.action.insertLineBefore
i pPaste aseditor.action.pasteAs
i sInsert snippeteditor.action.insertSnippet

Indent

KeyNameCommand
I dDetect indentationeditor.action.detectIndentation
I iChange indentationchangeEditorIndentation
I rReindenteditor.action.reindentlines
I RReindent selectededitor.action.reindentselectedlines
I sConvert indentation to spaceseditor.action.indentationToSpaces
I tConvert indentation to tabseditor.action.indentationToTabs

Jump

KeyNameCommand
j bGo to breadcrumbbreadcrumbs.focusAndSelect
j cGo to previous changeworkbench.action.editor.previousChange
j CGo to next changeworkbench.action.editor.nextChange
j dGo to declarationeditor.action.revealDeclaration
j jGo to definitioneditor.action.revealDefinition
j hShow call hierarchyreferences-view.showCallHierarchy
j iGo to implementationseditor.action.goToImplementation
j IFind implementationsreferences-view.findImplementations
j rGo to referenceeditor.action.goToReferences
j RFind referencesreferences-view.findReferences
j sGo to symbol in editorworkbench.action.gotoSymbol
j SGo to symbol in filesworkbench.action.showAllSymbols
j tGo to type definitioneditor.action.goToTypeDefinition

Peek

KeyNameCommand
p dPeek declarationeditor.action.peekDeclaration
p hPeek call hierarchyeditor.showCallHierarchy
p iPeek implementationseditor.action.peekImplementation
p pPeek definitioneditor.action.peekDefinition
p rPeek referenceseditor.action.referenceSearch.trigger
p RSearch all references in side barreferences-view.find
p tPeek type definitioneditor.action.peekTypeDefinition

Quit

KeyNameCommand
q fOpen recent folderworkbench.action.openRecent
q qQuit VSCode windowworkbench.action.closeWindow
q QQuit all VSCode windowsworkbench.action.quit
q rReload windowworkbench.action.reloadWindow
q RReload window with extensions disabledworkbench.action.reloadWindowWithExtensionsDisabled
q sSave all and close window[ workbench.action.files.saveAll, workbench.action.closeWindow ]
q wClose workspaceworkbench.action.closeFolder

Refactor

KeyNameCommand
r .Quick fixeditor.action.quickFix
r eExtract to function or variableeditor.action.codeAction: {"kind":"refactor.extract"}
r iOrganize importseditor.action.organizeImports
r rRename Symboleditor.action.rename
r RRefactor actionseditor.action.refactor
r sExecute source actioneditor.action.sourceAction
KeyNameCommand
s cClear Search Resultssearch.action.clearSearchResults
s eSearch Editor: Newsearch.action.openNewEditor
s ESearch Editor: New to the Sidesearch.action.openNewEditorToSide
s hHighlight symboleditor.action.wordHighlight.trigger
s qQuick searchworkbench.action.quickTextSearch
s sSearchactions.find
s SSearch in filesworkbench.action.findInFiles
s rReplaceeditor.action.startFindReplaceAction
s RReplace in filesworkbench.action.replaceInFiles
s *Search Selection in Files[ editor.action.addSelectionToNextFindMatch, workbench.action.findInFiles, search.action.focusSearchList ]

Highlight symbol

KeyNameCommand
s h nNext occurrenceeditor.action.wordHighlight.next
s h pPrevious occurrenceeditor.action.wordHighlight.prev
s h NPrevious occurrenceeditor.action.wordHighlight.prev

Show

KeyNameCommand
S dShow debug consoleworkbench.debug.action.toggleRepl
S eShow explorerworkbench.view.explorer
S EShow extensionsworkbench.view.extensions
S gShow source controlworkbench.view.scm
S nShow notificationnotifications.toggleList
S oShow outputworkbench.action.output.toggleOutput
S pShow problemsworkbench.actions.view.problems
S rShow remote explorerworkbench.view.remote
S sShow searchworkbench.view.search
S tShow testworkbench.view.extension.test

Toggle

KeyNameCommand
t bToggle side bar visibilityworkbench.action.toggleSidebarVisibility
t BToggle Activity Bar Visibilityworkbench.action.toggleActivityBarVisibility
t cToggle centered layoutworkbench.action.toggleCenteredLayout
t CToggle find case sensitivetoggleFindCaseSensitive
t fToggle full screenworkbench.action.toggleFullScreen
t iSelect icon themeworkbench.action.selectIconTheme
t mToggle minimapeditor.action.toggleMinimap
t pToggle panel visibilityworkbench.action.togglePanel
t PToggle maximized panelworkbench.action.toggleMaximizedPanel
t tSelect themeworkbench.action.selectTheme
t TToggle tab visibilityworkbench.action.toggleTabsVisibility
t wToggle word wrapeditor.action.toggleWordWrap
t WToggle render whitespaceeditor.action.toggleRenderWhitespace
t zToggle zen modeworkbench.action.toggleZenMode

Test

KeyNameCommand
T aRun all teststesting.runAll
T ADebug all teststesting.debugAll
T fRun current test filetesting.runCurrentFile
T rRe-run failed teststesting.reRunFailTests
T tSelect and run testtesting.runSelected
T TSelect and debug testtesting.debugSelected

Window/Group

KeyNameCommand
w +Enlarge groupworkbench.action.increaseViewSize
w =Enlarge groupworkbench.action.increaseViewSize
w -Shrink groupworkbench.action.decreaseViewSize
w cClose groupworkbench.action.closeEditorsInGroup
w CClose all other groupsworkbench.action.closeEditorsInOtherGroups
w hFocus group leftworkbench.action.navigateLeft
w HMove in group leftworkbench.action.moveActiveEditorGroupLeft
w jFocus group downworkbench.action.navigateDown
w JMove in group downworkbench.action.moveActiveEditorGroupDown
w kFocus group upworkbench.action.navigateUp
w KMove in group upworkbench.action.moveActiveEditorGroupUp
w lFocus group rightworkbench.action.navigateRight
w LMove in group rightworkbench.action.moveActiveEditorGroupRight
w mMaximize editor groupworkbench.action.toggleEditorWidths
w MMaximize editor group and hide othersworkbench.action.toggleMaximizeEditorGroup
w nDuplicate workspace in new windowworkbench.action.duplicateWorkspaceInNewWindow
w NOpen new VSCode windowworkbench.action.newWindow
w oSwitch VSCode windowworkbench.action.quickSwitchWindow
w rReset editor widthsworkbench.action.evenEditorWidths
w sSplit editor downworkbench.action.splitEditorDown
w vSplit editor rightworkbench.action.splitEditor
w wFocus group rightworkbench.action.focusNextGroup
w WFocus group leftworkbench.action.focusPreviousGroup
w xClose all groupsworkbench.action.closeAllGroups
w zJoin all groupsworkbench.action.joinAllGroups
w 1Single column window layoutworkbench.action.editorLayoutSingle
w 2Double column window layoutworkbench.action.editorLayoutTwoColumns
w 3Triple column window layoutworkbench.action.editorLayoutThreeColumns
w 4Grid window layoutworkbench.action.editorLayoutTwoByTwoGrid

Enlarge group

KeyNameCommand
w + -Shrink groupworkbench.action.decreaseViewSize
w + +Enlarge groupworkbench.action.increaseViewSize
w + =Enlarge groupworkbench.action.increaseViewSize

Enlarge group

KeyNameCommand
w = -Shrink groupworkbench.action.decreaseViewSize
w = +Enlarge groupworkbench.action.increaseViewSize
w = =Enlarge groupworkbench.action.increaseViewSize

Shrink group

KeyNameCommand
w - -Shrink groupworkbench.action.decreaseViewSize
w - +Enlarge groupworkbench.action.increaseViewSize
w - =Enlarge groupworkbench.action.increaseViewSize

Text

KeyNameCommand
x jMove lines downeditor.action.moveLinesDownAction
x kMove lines upeditor.action.moveLinesUpAction
x oOpen linkeditor.action.openLink
x uTo lower caseeditor.action.transformToLowercase
x UTo upper caseeditor.action.transformToUppercase
x wDelete trailing whitespaceeditor.action.trimTrailingWhitespace

Move lines down

KeyNameCommand
x j jMove lines downeditor.action.moveLinesDownAction
x j kMove lines upeditor.action.moveLinesUpAction

Move lines up

KeyNameCommand
x k jMove lines downeditor.action.moveLinesDownAction
x k kMove lines upeditor.action.moveLinesUpAction

Lines

KeyNameCommand
x l dDuplicate lines downeditor.action.copyLinesDownAction
x l DDuplicate lines upeditor.action.copyLinesUpAction
x l sSort lines in ascending ordereditor.action.sortLinesAscending
x l SSort lines in descending ordereditor.action.sortLinesDescending

Select/expand region

KeyNameCommand
v vGrow selectioneditor.action.smartSelect.grow
v VShrink selectioneditor.action.smartSelect.shrink

Zoom/Fold

KeyNameCommand
z +Zoom Inworkbench.action.zoomIn
z =Zoom Inworkbench.action.zoomIn
z -Zoom Outworkbench.action.zoomOut
z 0Reset zoomworkbench.action.zoomReset

Zoom In

KeyNameCommand
z + +Zoom Inworkbench.action.zoomIn
z + =Zoom Inworkbench.action.zoomIn
z + -Zoom Outworkbench.action.zoomOut

Zoom In

KeyNameCommand
z = +Zoom Inworkbench.action.zoomIn
z = =Zoom Inworkbench.action.zoomIn
z = -Zoom Outworkbench.action.zoomOut

Zoom Out

KeyNameCommand
z - +Zoom Inworkbench.action.zoomIn
z - =Zoom Inworkbench.action.zoomIn
z - -Zoom Outworkbench.action.zoomOut

Image preview

KeyNameCommand
z i +Zoom inimagePreview.zoomIn
z i -Zoom outimagePreview.zoomOut
z i =Zoom inimagePreview.zoomIn

Font

KeyNameCommand
z f +Zoom Ineditor.action.fontZoomIn
z f =Zoom Ineditor.action.fontZoomIn
z f -Zoom outeditor.action.fontZoomOut
z f 0Reset zoomeditor.action.fontZoomReset

Fold

KeyNameCommand
z F aToggle: around a pointeditor.toggleFold
z F bClose: all block commentseditor.foldAllBlockComments
z F cClose: at a pointeditor.fold
z F gClose: all regionseditor.foldAllMarkerRegions
z F GOpen: all regionseditor.unfoldAllMarkerRegions
z F mClose: alleditor.foldAll
z F oOpen: at a pointeditor.unfold
z F OOpen: recursivelyeditor.unfoldRecursively
z F rOpen: alleditor.unfoldAll

Task

KeyNameCommand
: .Rerun last taskworkbench.action.tasks.reRunTask
: :Run taskworkbench.action.tasks.runTask
: bRun build tasksworkbench.action.tasks.build
: cConfigure task runnerworkbench.action.tasks.configureTaskRunner
: gShow running tasksworkbench.action.tasks.showTasks
: lShow task logworkbench.action.tasks.showLog
: tRun test taskworkbench.action.tasks.test
: xTerminate taskworkbench.action.tasks.terminate
: RRestart running taskworkbench.action.tasks.restartTask