$devvkit resources --cheatsheet vs-code-shortcuts
VS Code Shortcuts
[editors]
Essential VS Code keyboard shortcuts, editor commands, and productivity tips.
VS Code is the most popular code editor for web development. Mastering its keyboard shortcuts and integrated tools (terminal, debugger, Git, multi-cursor) dramatically speeds up your workflow.
Shortcuts are listed for Windows/Linux first, with macOS in parentheses where different.
General & Navigation
$
Ctrl+P (Cmd+P)Quick open — fuzzy-find any file in the project.Example: Ctrl+P then type "index" to find index.ts
$
Ctrl+Shift+P (Cmd+Shift+P)Command palette — access all VS Code commands.Example: Ctrl+Shift+P then type "format"
$
Ctrl+B (Cmd+B)Toggle sidebar visibility.Example: Ctrl+B to hide/show the file explorer
$
Ctrl+TabCycle through open editor tabs.Example: Ctrl+Tab then release to go to last file
$
F12Go to definition of the symbol under the cursor.Example: F12 on a function call jumps to its definition
Editing & Multi-cursor
$
Ctrl+D (Cmd+D)Add next occurrence to multi-cursor selection.Example: Select a word, press Ctrl+D to select the next match
$
Alt+ClickAdd a cursor at the clicked position. Multiple simultaneous edits.Example: Alt+click on 5 lines to edit them all at once
$
Ctrl+Shift+L (Cmd+Shift+L)Select all occurrences of the current selection at once.Example: Select a variable name, press Ctrl+Shift+L to rename all instances
$
Alt+Up/DownMove the current line or selection up/down.Example: Alt+Down to move a line down
$
Shift+Alt+Up/DownDuplicate the current line or selection up/down.Example: Shift+Alt+Down to copy a line down
$
Ctrl+/ (Cmd+/)Toggle line comment on the current line or selection.Example: Select 3 lines, press Ctrl+/ to comment them all
$
Ctrl+Shift+K (Cmd+Shift+K)Delete the entire current line.Example: Ctrl+Shift+K to delete line without entering visual mode
Search & Replace
$
Ctrl+F (Cmd+F)Find within the current file.Example: Ctrl+F then type search term
$
Ctrl+H (Cmd+Alt+F)Find and replace within the current file.Example: Ctrl+H type old text, Tab, type new text
$
Ctrl+Shift+F (Cmd+Shift+F)Search across all files in the project.Example: Ctrl+Shift+F then type a function name
Integrated Terminal & Git
$
Ctrl+` (Cmd+`)Toggle the integrated terminal panel.Example: Ctrl+` to open terminal, type commands
$
Ctrl+Shift+` (Cmd+Shift+`)Create a new terminal instance.Example: Ctrl+Shift+` for a second terminal tab
$
Ctrl+Shift+G (Cmd+Shift+G)Open the Source Control (Git) panel.Example: Ctrl+Shift+G to stage, commit, push
Debugging
$
F5Start debugging. F10 = step over, F11 = step into, Shift+F5 = stop.Example: F5 to start, F10 to step over the next call
$
Ctrl+F5 (Cmd+F5)Start without debugging (just run).Example: Ctrl+F5 to launch without breakpoints
$
F9Toggle a breakpoint on the current line.Example: F9 to set a breakpoint, F5 to run to it
Editor UI
$
Ctrl+Shift+E (Cmd+Shift+E)Show the file explorer sidebar.Example: Ctrl+Shift+E to browse files
$
Ctrl+Shift+X (Cmd+Shift+X)Open the Extensions panel.Example: Ctrl+Shift+X then search for "Prettier"
VS Code Shortcuts
Essential VS Code keyboard shortcuts, editor commands, and productivity tips.
VS Code is the most popular code editor for web development. Mastering its keyboard shortcuts and integrated tools (terminal, debugger, Git, multi-cursor) dramatically speeds up your workflow.
Shortcuts are listed for Windows/Linux first, with macOS in parentheses where different.
General & Navigation
Ctrl+P (Cmd+P) — Quick open — fuzzy-find any file in the project.Example: Ctrl+P then type "index" to find index.ts
Ctrl+Shift+P (Cmd+Shift+P) — Command palette — access all VS Code commands.Example: Ctrl+Shift+P then type "format"
Ctrl+B (Cmd+B) — Toggle sidebar visibility.Example: Ctrl+B to hide/show the file explorer
Ctrl+Tab — Cycle through open editor tabs.Example: Ctrl+Tab then release to go to last file
F12 — Go to definition of the symbol under the cursor.Example: F12 on a function call jumps to its definition
Editing & Multi-cursor
Ctrl+D (Cmd+D) — Add next occurrence to multi-cursor selection.Example: Select a word, press Ctrl+D to select the next match
Alt+Click — Add a cursor at the clicked position. Multiple simultaneous edits.Example: Alt+click on 5 lines to edit them all at once
Ctrl+Shift+L (Cmd+Shift+L) — Select all occurrences of the current selection at once.Example: Select a variable name, press Ctrl+Shift+L to rename all instances
Alt+Up/Down — Move the current line or selection up/down.Example: Alt+Down to move a line down
Shift+Alt+Up/Down — Duplicate the current line or selection up/down.Example: Shift+Alt+Down to copy a line down
Ctrl+/ (Cmd+/) — Toggle line comment on the current line or selection.Example: Select 3 lines, press Ctrl+/ to comment them all
Ctrl+Shift+K (Cmd+Shift+K) — Delete the entire current line.Example: Ctrl+Shift+K to delete line without entering visual mode
Search & Replace
Ctrl+F (Cmd+F) — Find within the current file.Example: Ctrl+F then type search term
Ctrl+H (Cmd+Alt+F) — Find and replace within the current file.Example: Ctrl+H type old text, Tab, type new text
Ctrl+Shift+F (Cmd+Shift+F) — Search across all files in the project.Example: Ctrl+Shift+F then type a function name
Integrated Terminal & Git
Ctrl+` (Cmd+`) — Toggle the integrated terminal panel.Example: Ctrl+` to open terminal, type commands
Ctrl+Shift+` (Cmd+Shift+`) — Create a new terminal instance.Example: Ctrl+Shift+` for a second terminal tab
Ctrl+Shift+G (Cmd+Shift+G) — Open the Source Control (Git) panel.Example: Ctrl+Shift+G to stage, commit, push
Debugging
F5 — Start debugging. F10 = step over, F11 = step into, Shift+F5 = stop.Example: F5 to start, F10 to step over the next call
Ctrl+F5 (Cmd+F5) — Start without debugging (just run).Example: Ctrl+F5 to launch without breakpoints
F9 — Toggle a breakpoint on the current line.Example: F9 to set a breakpoint, F5 to run to it
Editor UI
Ctrl+Shift+E (Cmd+Shift+E) — Show the file explorer sidebar.Example: Ctrl+Shift+E to browse files
Ctrl+Shift+X (Cmd+Shift+X) — Open the Extensions panel.Example: Ctrl+Shift+X then search for "Prettier"