VS Code Shortcuts

Become a power user with these essential Visual Studio Code shortcuts.

General

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 + Shift + W
User SettingsCtrl + ,Cmd + ,
Keyboard ShortcutsCtrl + K Ctrl + SCmd + K Cmd + S

Basic Editing

ActionWindowsMac
Cut Line (empty selection)Ctrl + XCmd + X
Copy Line (empty selection)Ctrl + CCmd + C
Move Line Up/DownAlt + ↑ / ↓Opt + ↑ / ↓
Copy Line Up/DownShift + Alt + ↑ / ↓Shift + Opt + ↑ / ↓
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/Outdent LineCtrl + ] / [Cmd + ] / [

Multi-Cursor & Selection

ActionWindowsMac
Insert CursorAlt + ClickOpt + Click
Insert Cursor Above/BelowCtrl + Alt + ↑ / ↓Cmd + Opt + ↑ / ↓
Select current lineCtrl + LCmd + L
Select all occurrences of current wordCtrl + Shift + LCmd + Shift + L
Select next occurrenceCtrl + DCmd + D

Search & Replace

ActionWindowsMac
FindCtrl + FCmd + F
ReplaceCtrl + HCmd + Option + F
Find next/previousF3 / Shift + F3Cmd + G / Shift + Cmd + G
Select all occurrences of Find matchAlt + EnterOption + Enter