The complete Visual Studio Code keyboard shortcut reference — general, editing, multi-cursor, navigation, search, languages, display, editor & file management, debugging and the integrated terminal.
94 shortcutsWindowsmacOSLinuxv1.x
💠
Visual Studio Code — Keyboard Shortcuts
Windows · Shortcuts Hub
General
Show Command PaletteCtrl+Shift+P/F1
Quick Open, Go to FileCtrl+P
New window / instanceCtrl+Shift+N
Close windowCtrl+Shift+W
User settingsCtrl+,
Keyboard shortcutsCtrl+K+Ctrl+S
Basic Editing
Cut line (empty selection)Ctrl+X
Copy line (empty selection)Ctrl+C
Move line up / downAlt+↑/Alt+↓
Copy line up / downShift+Alt+↑/↓
Delete lineCtrl+Shift+K
Insert line below / aboveCtrl+Enter/Ctrl+Shift+Enter
Jump to matching bracketCtrl+Shift+\
Indent / outdent lineCtrl+]/[
Go to line start / endHome/End
Go to file start / endCtrl+Home/End
Toggle line commentCtrl+/
Toggle block commentShift+Alt+A
Toggle word wrapAlt+Z
Rich Languages Editing
Trigger suggestion (IntelliSense)Ctrl+Space
Trigger parameter hintsCtrl+Shift+Space
Format documentShift+Alt+F
Format selectionCtrl+K+Ctrl+F
Go to DefinitionF12
Peek DefinitionAlt+F12
Quick FixCtrl+.
Show referencesShift+F12
Rename symbolF2
Trim trailing whitespaceCtrl+K+Ctrl+X
Change file languageCtrl+K+M
Multi-cursor & Selection
Insert cursor (at click)Alt+Click
Insert cursor above / belowCtrl+Alt+↑/↓
Undo last cursor operationCtrl+U
Add cursor to line ends of selectionShift+Alt+I
Select current lineCtrl+L
Select next occurrence of wordCtrl+D
Select all occurrences of wordCtrl+Shift+L
Select all occurrences of find matchAlt+Enter
Expand / shrink selectionShift+Alt+→/←
Column (box) selectionShift+Alt+drag
Search & Replace
FindCtrl+F
ReplaceCtrl+H
Find next / previousF3/Shift+F3
Find in filesCtrl+Shift+F
Replace in filesCtrl+Shift+H
Toggle case-sensitive / regexAlt+C/Alt+R
Navigation
Show all SymbolsCtrl+T
Go to LineCtrl+G
Go to Symbol in fileCtrl+Shift+O
Show Problems panelCtrl+Shift+M
Next / previous error or warningF8/Shift+F8
Navigate editor group historyCtrl+Tab
Go back / forwardAlt+←/→
Toggle Tab moves focusCtrl+M
Display
Toggle full screenF11
Toggle Zen ModeCtrl+K+Z
Zoom in / outCtrl+=/-
Toggle sidebar visibilityCtrl+B
Show Explorer / focusCtrl+Shift+E
Show SearchCtrl+Shift+F
Show Source ControlCtrl+Shift+G
Show Run / DebugCtrl+Shift+D
Show ExtensionsCtrl+Shift+X
Toggle Output panelCtrl+Shift+U
Toggle panel (bottom)Ctrl+J
Editor Management
Close editorCtrl+W
Close folderCtrl+K+F
Split editorCtrl+\
Focus editor group 1 / 2 / 3Ctrl+1/2/3
Move editor left / rightCtrl+Shift+PgUp/PgDn
Move editor groupCtrl+K+←/→
File Management
New fileCtrl+N
Open fileCtrl+O
SaveCtrl+S
Save AsCtrl+Shift+S
Save allCtrl+K+S
Close editorCtrl+F4
Reopen closed editorCtrl+Shift+T
Keep preview editor openCtrl+K+Enter
Copy path of active fileCtrl+K+P
Reveal active file in ExplorerCtrl+K+R
Debug
Toggle breakpointF9
Start / ContinueF5
StopShift+F5
Step intoF11
Step overF10
Step outShift+F11
Show hoverCtrl+K+Ctrl+I
Integrated Terminal
Show / toggle terminalCtrl+`
Create new terminalCtrl+Shift+`
Split terminalCtrl+Shift+5
Copy selectionCtrl+C
Scroll up / downCtrl+↑/↓
Clear terminalCtrl+K+(in+terminal)
Generated from shortcuts.growwithloki.com · Visual Studio Code cheat sheet