VS Code Shortcuts
50 shortcuts · Windows / Mac / Linux · Last updated
The definitive guide to Visual Studio Code keyboard shortcuts — edit, navigate, refactor, and debug at the speed of thought.
General
Show Command Palette
Ctrl + Shift + PQuick Open file
Ctrl + PNew window
Ctrl + Shift + NOpen Settings
Ctrl + ,Open Keyboard Shortcuts
Ctrl + K, Ctrl + SEditing
Cut line (empty selection)
Ctrl + XCopy line (empty selection)
Ctrl + CMove line up
Alt + UpMove line down
Alt + DownCopy line up
Shift + Alt + UpCopy line down
Shift + Alt + DownToggle line comment
Ctrl + /Toggle block comment
Shift + Alt + AToggle word wrap
Alt + ZNavigation
Go to line
Ctrl + GShow all symbols
Ctrl + TGo to symbol in file
Ctrl + Shift + OGo to next error or warning
F8Go to previous error or warning
Shift + F8Go back
Alt + LeftGo forward
Alt + RightSearch & Replace
Find
Ctrl + FReplace
Ctrl + HFind across files
Ctrl + Shift + FReplace across files
Ctrl + Shift + HSelect all occurrences of match
Alt + EnterMulti-cursor & Selection
Insert cursor
Alt + ClickAdd cursor above
Ctrl + Alt + UpAdd cursor below
Ctrl + Alt + DownAdd selection to next match
Ctrl + DSelect all matches
Ctrl + Shift + LSelect current line
Ctrl + LFile Management
New file
Ctrl + NOpen file
Ctrl + OSave
Ctrl + SSave As
Ctrl + Shift + SClose all editors
Ctrl + K, Ctrl + WReopen closed editor
Ctrl + Shift + TDisplay
Toggle Sidebar
Ctrl + BToggle Panel (terminal, output)
Ctrl + JToggle terminal
Ctrl + `Toggle full layout
Ctrl + K, Ctrl + BShow Explorer
Ctrl + Shift + EShow Source Control
Ctrl + Shift + GDebug
Start debugging
F5Stop debugging
Shift + F5Toggle breakpoint
F9Step over
F10Step into
F11Step out
Shift + F11Related programs
Windows
Master essential Windows keyboard shortcuts to navigate, manage windows, and control your system faster than ever.
Git
The essential Git command reference — version control, branching, syncing, history, and undo. Copy, paste, ship.
Chrome
The essential Google Chrome keyboard shortcuts — tabs, navigation, address bar, dev tools, and window management. Browse faster.