Cheat Sheet

VS Code Shortcuts Cheat Sheet — Windows + Mac + Linux

Complete VS Code keyboard shortcuts cheat sheet: multi-cursor, navigation, terminal, debugging, refactoring. Cross-platform reference.

Practical VS Code keyboard shortcut reference. Win/Linux column uses Ctrl/Alt; Mac column uses /. The shortcuts that actually make you fast are flagged.

Command Palette (the keyboard ninja's superpower)

ActionWin/LinuxMac
Command PaletteCtrl + Shift + P⌘ + ⇧ + P
Quick Open fileCtrl + P⌘ + P
Quick Open recentCtrl + R⌃ + R
Go to Symbol in fileCtrl + Shift + O⌘ + ⇧ + O
Go to Symbol in workspaceCtrl + T⌘ + T
Go to LineCtrl + G⌃ + G
Show keyboard shortcutsCtrl + K, Ctrl + S⌘ + K, ⌘ + S

Pro tip: typing ? in Quick Open shows the keyword-prefix help for every other quick-pick (commands, symbols, lines, etc.).

Editing

ActionWin/LinuxMac
Cut / Copy line (without selection)Ctrl + X / C⌘ + X / C
Move line up / downAlt + ↑ / ↓⌥ + ↑ / ↓
Copy line up / downShift + Alt + ↑ / ↓⇧ + ⌥ + ↑ / ↓
Delete lineCtrl + Shift + K⌘ + ⇧ + K
Insert line below / aboveCtrl + Enter / Ctrl + Shift + Enter⌘ + ↩ / ⌘ + ⇧ + ↩
Indent / outdentTab / Shift + Tab⇥ / ⇧ + ⇥
Toggle line commentCtrl + /⌘ + /
Toggle block commentShift + Alt + A⇧ + ⌥ + A
Trigger suggestionsCtrl + Space⌃ + Space
Trigger parameter hintsCtrl + Shift + Space⌘ + ⇧ + Space
Format documentShift + Alt + F⇧ + ⌥ + F
Format selectionCtrl + K, Ctrl + F⌘ + K, ⌘ + F
Rename SymbolF2F2
Quick Fix / show code actionsCtrl + .⌘ + .

Multi-cursor (the killer feature)

ActionWin/LinuxMac
Insert cursor above / belowCtrl + Alt + ↑ / ↓⌥ + ⌘ + ↑ / ↓
Insert cursor at clickAlt + click⌥ + click
Add next occurrence of selectionCtrl + D⌘ + D
Skip current occurrenceCtrl + K, Ctrl + D⌘ + K, ⌘ + D
Select all occurrencesCtrl + Shift + L⌘ + ⇧ + L
Select all occurrences of wordCtrl + F2⌘ + F2
Column (box) selectionShift + Alt + drag⇧ + ⌥ + drag
Expand selectionShift + Alt + →⌃ + ⇧ + ⌘ + →
Shrink selectionShift + Alt + ←⌃ + ⇧ + ⌘ + ←

Navigation

ActionWin/LinuxMac
Go to DefinitionF12F12
Peek DefinitionAlt + F12⌥ + F12
Open Definition to sideCtrl + K, F12⌘ + K, F12
Go to ReferencesShift + F12⇧ + F12
Go to Type Definition(via Command Palette)(via Command Palette)
Go to ImplementationCtrl + F12⌘ + F12
Navigate backCtrl + Alt + -⌃ + -
Navigate forwardCtrl + Shift + -⌃ + ⇧ + -
Go to matching bracketCtrl + Shift + \⌘ + ⇧ + \
Toggle foldCtrl + Shift + [ / ]⌘ + ⌥ + [ / ]
Fold / unfold allCtrl + K, Ctrl + 0 / J⌘ + K, ⌘ + 0 / J

Search & replace

ActionWin/LinuxMac
FindCtrl + F⌘ + F
Find next / previousF3 / Shift + F3⌘ + G / ⌘ + ⇧ + G
ReplaceCtrl + H⌘ + ⌥ + F
Find in filesCtrl + Shift + F⌘ + ⇧ + F
Replace in filesCtrl + Shift + H⌘ + ⇧ + H
Toggle case sensitive / regex / whole wordAlt + C / R / W (in find)⌘ + ⌥ + C / R / W
Add selection to next find matchCtrl + D (in find)⌘ + D

Files & editor tabs

ActionWin/LinuxMac
New fileCtrl + N⌘ + N
SaveCtrl + S⌘ + S
Save allCtrl + K, S⌘ + ⌥ + S
Close editorCtrl + W⌘ + W
Reopen closed editorCtrl + Shift + T⌘ + ⇧ + T
Cycle editor tabsCtrl + Tab⌃ + Tab
Switch to tab NCtrl + 1 / 2 / 3 ...⌘ + 1 / 2 / 3 ...
Split editor (right)Ctrl + \⌘ + \
Split editor (down)Ctrl + K, Ctrl + \⌘ + K, ⌘ + \
Focus split editor 1/2/3Ctrl + 1 / 2 / 3⌘ + 1 / 2 / 3

Sidebar & panels

ActionWin/LinuxMac
Toggle sidebarCtrl + B⌘ + B
ExplorerCtrl + Shift + E⌘ + ⇧ + E
SearchCtrl + Shift + F⌘ + ⇧ + F
Source ControlCtrl + Shift + G⌃ + ⇧ + G
Run & DebugCtrl + Shift + D⌘ + ⇧ + D
ExtensionsCtrl + Shift + X⌘ + ⇧ + X
Toggle Panel (terminal, problems, output)Ctrl + J⌘ + J
Toggle TerminalCtrl + `⌃ + `
New TerminalCtrl + Shift + `⌃ + ⇧ + `
Toggle ProblemsCtrl + Shift + M⌘ + ⇧ + M
Toggle OutputCtrl + Shift + U⌘ + ⇧ + U
Toggle Zen ModeCtrl + K, Z⌘ + K, Z
Toggle Full ScreenF11⌃ + ⌘ + F

Debugging

ActionWin/LinuxMac
Start / ContinueF5F5
Stop debuggingShift + F5⇧ + F5
Step overF10F10
Step intoF11F11
Step outShift + F11⇧ + F11
Toggle breakpointF9F9
Restart debugCtrl + Shift + F5⌘ + ⇧ + F5

Workbench, settings

ActionWin/LinuxMac
Settings UICtrl + ,⌘ + ,
Keyboard shortcuts UICtrl + K, Ctrl + S⌘ + K, ⌘ + S
Open user settings JSON(Command Palette → Preferences: Open Settings (JSON))(same)
Reload windowCtrl + R (after install) or Cmd Palette "Reload Window"same
Toggle word wrapAlt + Z⌥ + Z
Toggle minimap(Command Palette → "View: Toggle Minimap")(same)

Related tools

Test regex patterns before pasting into VS Code's Find/Replace: regex tester. Pretty-print JSON pasted from API responses: JSON formatter. Compare two versions of a file outside VS Code: diff checker.

Featured Tools

Try these free tools directly in your browser — no sign-up required.

vscode shortcuts vs code shortcuts visual studio code keyboard shortcuts vscode cheat sheet vscode multi cursor vscode commands

Explore 300+ Free Tools

Utilko has tools for developers, writers, designers, students, and everyday users — all free, all browser-based.