Shortcuts & Productivity · Cheatsheet
VS Code Shortcuts Cheatsheet
VS Code keyboard shortcuts for editing, navigation, search, terminals, debugging, and panel layout.
55 shortcuts 8 sections
No entry matches that filter.
-
Ctrl+Shift+P / Cmd+Shift+PCommand Palette -
Ctrl+P / Cmd+PQuick Open file -
Ctrl+, / Cmd+,Open Settings -
Ctrl+` / Cmd+`Toggle terminal -
Ctrl+B / Cmd+BToggle sidebar -
Ctrl+Shift+E / Cmd+Shift+EOpen Explorer -
Ctrl+Shift+F / Cmd+Shift+FSearch across files -
Ctrl+Shift+G / Cmd+Shift+GOpen Source Control
-
Ctrl+D / Cmd+DSelect next occurrence of word -
Ctrl+Shift+L / Cmd+Shift+LSelect all occurrences -
Alt+Up / Option+UpMove line up -
Alt+Down / Option+DownMove line down -
Shift+Alt+Up / Shift+Option+UpCopy line up -
Shift+Alt+Down / Shift+Option+DownCopy line down -
Ctrl+Shift+K / Cmd+Shift+KDelete entire line -
Ctrl+Enter / Cmd+EnterInsert line below -
Ctrl+Shift+Enter / Cmd+Shift+EnterInsert line above -
Ctrl+/ / Cmd+/Toggle line comment -
Shift+Alt+A / Shift+Option+AToggle block comment -
Ctrl+] / Cmd+]Indent line -
Ctrl+[ / Cmd+[Outdent line
-
Alt+Click / Option+ClickAdd cursor at position -
Ctrl+Alt+Up / Cmd+Option+UpAdd cursor above -
Ctrl+Alt+Down / Cmd+Option+DownAdd cursor below -
Ctrl+D / Cmd+DAdd cursor at next match -
Ctrl+U / Cmd+UUndo last cursor operation
-
Ctrl+F / Cmd+FFind in file -
Ctrl+H / Cmd+Option+FFind and replace -
F3 / Cmd+GFind next match -
Shift+F3 / Cmd+Shift+GFind previous match -
Alt+EnterSelect all matches
-
Ctrl+` / Cmd+`Toggle integrated terminal -
Ctrl+Shift+` / Cmd+Shift+`Create new terminal -
F5Start/continue debugging -
F9Toggle breakpoint -
F10Step over -
F11Step into -
Shift+F11Step out -
Shift+F5Stop debugging
-
Ctrl+\ / Cmd+\Split editor -
Ctrl+1/2/3 / Cmd+1/2/3Focus editor group 1/2/3 -
Ctrl+W / Cmd+WClose current tab -
Ctrl+K Ctrl+W / Cmd+K Cmd+WClose all tabs -
Ctrl+Shift+V / Cmd+Shift+VMarkdown preview -
Ctrl+K V / Cmd+K VMarkdown preview side-by-side
-
https://code.visualstudio.com/docs/configure/keybindingsVisual Studio Code: default shortcuts, operating-system differences, and custom key bindings.
Related cheatsheets
Guides that use these shortcuts
Tools for this work
- Keyboard Shortcut FinderFind keyboard shortcuts for VS Code, Chrome, Excel, Photoshop and more. Search by action name with Mac and Windows keys.
- UML Diagram EditorCreate UML diagrams with a live PlantUML editor. Write code and instantly preview sequence, class, activity, state, and component diagrams.
- Internet Shortcuts to CSVTurn Windows .url Internet Shortcut files, or a ZIP of them, into a CSV or a plain list of URLs.