VS Code Shortcuts
Essential keyboard shortcuts for Visual Studio Code
Editor
General
Cmd/Ctrl + Shift + PCommand Palette
Cmd/Ctrl + PQuick Open file
Cmd/Ctrl + ,Open Settings
Cmd/Ctrl + `Toggle Terminal
Cmd/Ctrl + BToggle Sidebar
Cmd/Ctrl + Shift + EExplorer
Cmd/Ctrl + Shift + FSearch in files
Editing
Cmd/Ctrl + XCut line
Cmd/Ctrl + CCopy line
Alt + Up/DownMove line up/down
Shift + Alt + Up/DownDuplicate line
Cmd/Ctrl + Shift + KDelete line
Cmd/Ctrl + /Toggle comment
Cmd/Ctrl + DSelect next occurrence
Cmd/Ctrl + Shift + LSelect all occurrences
Multi-Cursor
Alt + ClickInsert cursor
Cmd/Ctrl + Alt + Up/DownAdd cursor above/below
Cmd/Ctrl + UUndo cursor
Shift + Alt + ICursor at end of lines
Navigation
Cmd/Ctrl + GGo to line
Cmd/Ctrl + Shift + OGo to symbol
F12Go to definition
Alt + F12Peek definition
Shift + F12Find references
Cmd/Ctrl + TabSwitch editor
Refactoring
F2Rename symbol
Cmd/Ctrl + .Quick Fix
Shift + Alt + FFormat document
Cmd/Ctrl + K Cmd/Ctrl + FFormat selection
View & Panels
Cmd/Ctrl + \Split editor
Cmd/Ctrl + 1/2/3Focus editor group
Cmd/Ctrl + WClose editor
Cmd/Ctrl + K ZZen mode
Cmd/Ctrl + JToggle panel