←Back to Guides
โŒจ๏ธDev Shortcutsโฑ๏ธ 14 min read•Updated October 2026

VS Code Keyboard Shortcuts & Workflow Productivity Cheat Sheet

Comprehensive cross-platform keyboard shortcut cheat sheet and productivity guide for Visual Studio Code across Windows, macOS, and Linux: multi-cursor editing, command palette, navigation, refactoring, and integrated terminal mastery.

#vscode#keyboard-shortcuts#hotkeys#developer-productivity#code-editor#workflow

1. General Navigation & Command Palette

The Command Palette and Quick Open are the two central hubs of VS Code. Mastering these eliminates mouse reaching entirely.
Windows / LinuxmacOS (Cmd/Opt)Action / FeatureCopy
Ctrl + Shift + P (or F1)Cmd + Shift + P (or F1)Command Palette: search and execute all editor commands.
Ctrl + PCmd + PQuick Open: instantly jump to any file in your project workspace.
Ctrl + ,Cmd + ,Open Settings (JSON or Graphical Settings editor).
Ctrl + K, Ctrl + SCmd + K, Cmd + SOpen Keyboard Shortcuts configuration manager.
Ctrl + BCmd + BToggle Primary Side Bar visibility (Explorer, Search, Git).
Ctrl + Shift + ECmd + Shift + EFocus File Explorer view in the sidebar.
Ctrl + Shift + FCmd + Shift + FGlobal Search across all files in the current workspace.
Ctrl + Shift + GCtrl + Shift + GFocus Source Control (Git staging and commit view).
Ctrl + Shift + XCmd + Shift + XOpen Extensions Marketplace panel.

2. Multi-Cursor & Multi-Selection Superpowers

Multi-cursor editing is one of the biggest productivity multipliers in modern software development. Edit hundreds of lines simultaneously with zero manual typing.
Windows / LinuxmacOS (Cmd/Opt)Action / Multi-Cursor TechniqueCopy
Alt + ClickOption + ClickInsert an extra cursor anywhere you click in the file.
Ctrl + DCmd + DAdd cursor to the NEXT matching occurrence of the current selection.
Ctrl + UCmd + UUndo the last cursor addition without losing previous cursors.
Ctrl + Shift + LCmd + Shift + LSelect ALL occurrences of the current word across the entire file.
Ctrl + Alt + Up / DownCmd + Option + Up / DownAdd vertical cursors above or below the current line (column mode).
Shift + Alt + IShift + Option + IInsert cursors at the end of each selected line.
Ctrl + Shift + Right / LeftShift + Option + Right / LeftExpand cursor selection by full words or identifier tokens.

3. Fast Line & Code Block Manipulation

Never copy and paste lines manually. Use these native shortcuts to move, duplicate, and format code instantly.
Windows / LinuxmacOS (Cmd/Opt)Action / ManipulationCopy
Alt + Up / DownOption + Up / DownMove the current line or highlighted block up or down seamlessly.
Shift + Alt + Down / UpShift + Option + Down / UpDuplicate (copy) the current line or block directly below or above.
Ctrl + Shift + KCmd + Shift + KDelete the entire current line without putting it in your clipboard.
Ctrl + EnterCmd + EnterInsert a new blank line below the current line without breaking code.
Ctrl + Shift + EnterCmd + Shift + EnterInsert a new blank line above the current line.
Ctrl + /Cmd + /Toggle single-line comment on or off for the current line or selection.
Shift + Alt + AShift + Option + AToggle block comment (/* ... */) on current selection.
Shift + Alt + FShift + Option + FFormat Document using Prettier or configured language formatter.

4. Code Navigation, Peeking & Refactoring

Navigate deep codebases and rename variables safely across thousands of references in milliseconds.
Windows / LinuxmacOS (Cmd/Opt)Action / Refactoring MoveCopy
F12F12Go to Definition: jump directly to where a function, class, or variable is declared.
Alt + F12Option + F12Peek Definition: view the declaration in an inline preview box without leaving context.
Shift + F12Shift + F12Find All References: display everywhere this symbol is called or imported.
F2F2Rename Symbol: safely rename a variable or function across your entire workspace.
Ctrl + . (Period)Cmd + . (Period)Quick Fix / Code Action: auto-import modules, fix lint errors, or extract methods.
Ctrl + Shift + OCmd + Shift + OGo to Symbol in file: navigate methods, variables, and exports by typing name.
Ctrl + TCmd + TGo to Symbol across the entire workspace (all project files).
Ctrl + [ / Ctrl + ]Cmd + [ / Cmd + ]Indent or outdent selected lines of code.

5. Integrated Terminal & Focus Modes

Control your terminals and focus environments directly from the keyboard without switching windows.
Windows / LinuxmacOS (Cmd/Opt)Action / Window ManagementCopy
Ctrl + ` (Backtick)Ctrl + ` (Backtick)Toggle visibility of the integrated terminal drawer.
Ctrl + Shift + `Ctrl + Shift + `Create and open a brand-new integrated terminal instance.
Ctrl + \Cmd + \Split active editor horizontally into dual side-by-side editing panes.
Ctrl + 1 / 2 / 3Cmd + 1 / 2 / 3Focus editor group 1, 2, or 3 instantly.
Ctrl + K, ZCmd + K, ZToggle Zen Mode: hide all chrome, menus, and sidebars for distraction-free coding.
Esc, EscEsc, EscExit Zen Mode back to standard workspace.

๐ŸŽ“Explore More Guides

โœจ