VS Code Keyboard Shortcuts Cheatsheet & Keys Cheat Sheet
Complete VS Code shortcuts cheatsheet and editor keymap cheat sheet. Maximize productivity using essential editing hacks, navigation commands, and terminal toggles.
Interactive Skill Mastery
Mark commands as learned to build your customized reference tracker. Retained locally in this browser.
Command Palette
When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + Shift + P / Cmd + Shift + POutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + K Ctrl + S / Cmd + K Cmd + SOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.Navigation & Search
When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + P / Cmd + POutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + Shift + F / Cmd + Shift + FOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + Tab / Cmd + Option + Left/RightOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Alt + F12 / Option + F12Output Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
F10 / F11Output Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.Editing Productivity
When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Alt + Up / Down / Option + Up / DownOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Shift + Alt + Down / Shift + Option + DownOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + / / Cmd + /Output Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Shift + Alt + A / Shift + Option + AOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + Shift + [ / Cmd + Option + [Output Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Shift + Alt + F / Shift + Option + FOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.Multi-Cursor Hacks
When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + D / Cmd + DOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Alt + Click / Option + ClickOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + Shift + L / Cmd + Shift + LOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.Terminal & Layout
When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + \ / Cmd + \Output Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + ` / Cmd + `Output Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.When to Use
When trying to speed up editing focus, multi-line selections, and code navigation within your VS Code editor workspace.
Common Mistakes
Performing repetitive actions or selections purely via trackpads and mouse clicks rather than mastering keys.
Shortcut / Pro-Tip
Trigger the Command Palette (Ctrl+Shift+P) and type 'Keyboard Shortcuts' to inspect, search, and customize any hotkeys.Example
Ctrl + B / Cmd + BOutput Example
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.VS Code Shortcuts Best Practices
1Open Workspace folders exclusively
Launch directories directly to enable full context parsing, code indexing, type definitions, and version control integrations.
2Master Multi-Cursor Cursor Selections
Combine keyboard hotkeys (like Alt+Click or Ctrl+D) to place multiple cursors, speeding up bulk editing.
3Set Keyboard Hotkeys for Terminal Toggles
Map quick shortcuts to easily toggle panels, file list sidebars, and integrated consoles on and off.
4Install Curated Workspace Extensions
Customize VS Code using official language extensions (ESLint, Prettier, Python, Terraform) to get real-time linting.
5Configure settings.json under Git tracking
Store your editor user configurations in dotfiles or settings.json to replicate configurations across development environments.
Common VS Code Shortcuts Errors & Solutions
Shortcuts overlapping with system keys
System desktop keymaps can intercept editor key sequences. Rebind conflicting shortcuts in the Keyboard Shortcuts menu.
Integrated terminal crashing or slow
Verify the default shell path (e.g. bash, zsh, powershell) inside settings.json, or switch terminal renderers to 'canvas'.
Git tracking missing in visual sidebar
Ensure the active folder contains a valid '.git' repository. Open individual files inside initialized folders.
Extension key conflicts
Multiple installed keymap extensions (like Vim or Sublime) overwrite default bindings. Disable unused keymaps.
Search index skipping code files
Verify directory ignore configurations. Remove search exclusions inside settings.json or toggle the exclusion button.
Common VS Code Shortcuts Interview Questions
Q1What are the most essential navigation keyboard shortcuts inside VS Code?
Ctrl+P (Cmd+P on Mac) opens Quick Open to search and hop to files, Ctrl+Shift+P (Cmd+Shift+P) triggers the Command Palette, and Alt+Click targets multiple cursor locations.
Q2How do you split editor layouts into side-by-side workspace panes?
Use the keyboard shortcut Ctrl+\ (Cmd+\ on macOS) or drag and drop open file tabs into visual editor boundaries to split the workspace grid.
Q3What is the Command Palette and why is it crucial?
The Command Palette is the central execution hub of VS Code. It lets you run extension commands, search keymaps, reformat documents, change themes, and run tests entirely via key prompts.
Q4How do you manage workspace configurations across a shared team of developers?
By committing workspace-specific settings in a '.vscode/settings.json' file at the project root directory. VS Code prioritizes these settings over individual user configurations.
Q5How do you place multiple cursors to edit non-adjacent lines?
Hold Alt (Option on macOS) and click on different locations in the editor, or select a text segment and press Ctrl+D (Cmd+D) recursively to select next matches.
Related Resources
REST API Tester
Test API routes and endpoints directly in your browser with full request controls.
JSON Formatter & Validator
Beautify, validate, and minify JSON structures instantly.
Best Free Online Developer Tools
An expert review of must-have online utilities for developers.
Git Cheatsheet
Essential command reference for local and remote version control repositories.
Generated from LearnHubly Developer Cheatsheets
Access interactive sandbox tests, tools, and developer code bases at https://www.learnhubly.com