Essential Keyboard Shortcuts

Learning these shortcuts will save you hours every week.

Navigation

ShortcutAction
Cmd/Ctrl + PQuick file open
Cmd/Ctrl + Shift + PCommand palette
Cmd/Ctrl + BToggle sidebar
Cmd/Ctrl + `Toggle terminal
Cmd/Ctrl + \\Split editor
Ctrl + TabSwitch between open files

Editing

ShortcutAction
Alt + Up/DownMove line up/down
Shift + Alt + Up/DownDuplicate line
Cmd/Ctrl + Shift + KDelete line
Cmd/Ctrl + DSelect next occurrence
Cmd/Ctrl + Shift + LSelect all occurrences
Alt + ClickMulti-cursor

Search

ShortcutAction
Cmd/Ctrl + FFind in file
Cmd/Ctrl + Shift + FFind in project
Cmd/Ctrl + HFind and replace
Cmd/Ctrl + GGo to line
Cmd/Ctrl + Shift + OGo to symbol

The #1 shortcut

Cmd/Ctrl + Shift + P — the Command Palette gives you access to every VS Code feature. If you forget everything else, remember this one.