Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Visual Studio Code keyboard shortcuts

Microsoft · 80 shortcuts

80 Visual Studio Code shortcuts grouped by task, with Windows and Mac keys side by side. Click any row for the full answer page.

Essentials

ActionWindowsMac
Show Command PaletteCtrl+Shift+PCmd+Shift+P
Quick Open, Go to FileCtrl+PCmd+P
New window/instanceCtrl+Shift+NCmd+Shift+N
Close window/instanceCtrl+Shift+WCmd+W
User SettingsCtrl+,Cmd+,
Open Keyboard Shortcuts editorCtrl+K then Ctrl+SCmd+K then Cmd+S
New FileCtrl+NCmd+N
Open FileCtrl+OCmd+O
SaveCtrl+SCmd+S
Save AsCtrl+Shift+SCmd+Shift+S
Save AllCtrl+K then SCmd+Option+S
Close fileCtrl+F4Cmd+W
Reopen closed editorCtrl+Shift+TCmd+Shift+T
ActionWindowsMac
Show all SymbolsCtrl+TCmd+T
Go to LineCtrl+GCtrl+G
Go to SymbolCtrl+Shift+OCmd+Shift+O
Show Problems panelCtrl+Shift+MCmd+Shift+M
Navigate editor group historyCtrl+Shift+TabCtrl+Shift+Tab
Go backAlt+LeftCtrl+-
Go forwardAlt+RightCtrl+Shift+-

Editing

ActionWindowsMac
Cut line (empty selection)Ctrl+XCmd+X
Copy line (empty selection)Ctrl+CCmd+C
Move line upAlt+UpOption+Up
Move line downAlt+DownOption+Down
Copy line upShift+Alt+UpShift+Option+Up
Copy line downShift+Alt+DownShift+Option+Down
Delete lineCtrl+Shift+KCmd+Shift+K
Insert line belowCtrl+EnterCmd+Enter
Insert line aboveCtrl+Shift+EnterCmd+Shift+Enter
Jump to matching bracketCtrl+Shift+\Cmd+Shift+\
Indent lineCtrl+]Cmd+]
Outdent lineCtrl+[Cmd+[
Go to beginning of fileCtrl+HomeCmd+Up
Go to end of fileCtrl+EndCmd+Down
Toggle line commentCtrl+/Cmd+/
Toggle block commentShift+Alt+AShift+Option+A
Trigger suggestionCtrl+SpaceCtrl+Space
Trigger parameter hintsCtrl+Shift+SpaceCmd+Shift+Space
Format documentShift+Alt+FShift+Option+F
Format selectionCtrl+K then Ctrl+FCmd+K then Cmd+F
Go to DefinitionF12F12
Peek DefinitionAlt+F12Option+F12
Open Definition to the sideCtrl+K then F12Cmd+K then F12
Quick FixCtrl+.Cmd+.
Show ReferencesShift+F12Shift+F12
Rename SymbolF2F2

Multi-cursor

ActionWindowsMac
Insert cursorAlt+ClickOption+Click
Insert cursor aboveCtrl+Alt+UpCmd+Option+Up
Insert cursor belowCtrl+Alt+DownCmd+Option+Down
Undo last cursor operationCtrl+UCmd+U
Select current lineCtrl+LCmd+L
Select all occurrences of current selectionCtrl+Shift+LCmd+Shift+L
Select all occurrences of current wordCtrl+F2Cmd+F2
Expand selectionShift+Alt+RightCtrl+Shift+Cmd+Right
Shrink selectionShift+Alt+LeftCtrl+Shift+Cmd+Left

Search & replace

ActionWindowsMac
FindCtrl+FCmd+F
ReplaceCtrl+HCmd+Option+F
Find nextF3Cmd+G
Find previousShift+F3Cmd+Shift+G
Select all occurrences of Find matchAlt+EnterOption+Enter
Add selection to next Find matchCtrl+DCmd+D

Panels & views

ActionWindowsMac
Close editorCtrl+WCmd+W
Split editorCtrl+\Cmd+\
Toggle full screenF11Ctrl+Cmd+F
Zoom inCtrl+=Cmd+=
Zoom outCtrl+-Shift+Cmd+-
Toggle Sidebar visibilityCtrl+BCmd+B
Show ExplorerCtrl+Shift+EShift+Cmd+E
Show SearchCtrl+Shift+FShift+Cmd+F
Show Source ControlCtrl+Shift+GCtrl+Shift+G
Show DebugCtrl+Shift+DShift+Cmd+D
Show ExtensionsCtrl+Shift+XShift+Cmd+X
Show Output panelCtrl+Shift+UShift+Cmd+U
Open Markdown previewCtrl+Shift+VShift+Cmd+V

Debugging

ActionWindowsMac
Toggle breakpointF9F9
Start/ContinueF5F5
StopShift+F5Shift+F5
Step intoF11F11
Step outShift+F11Shift+F11
Step overF10F10

Ask your agent

Prompt

Make me a one-page Visual Studio Code cheat sheet from the 80 shortcuts at https://keyflowhub.com/shortcuts/vscode, ordered by what I'm most likely to use, and point out any that clash with my current keybindings.

Paste into Claude Code and it will do the rest.

Questions

Windows: Ctrl + U. Mac: Cmd + U.

Windows: Ctrl + S. Mac: Cmd + S.

Windows: Ctrl + F. Mac: Cmd + F.

Sources: code.visualstudio.com, code.visualstudio.com, code.visualstudio.com, code.visualstudio.com

Buy me a coffee