Programming Utility
Updated for 2026

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.

Target Version Compatibility

Interactive Skill Mastery

Mark commands as learned to build your customized reference tracker. Retained locally in this browser.

Level:Novice
Command Mastery Progress0 of 19 Mastered (0%)

Command Palette

Ctrl + Shift + P / Cmd + Shift + P
BeginnerBasics
Access the VS Code Command Palette to invoke any editor function.

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 + P

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Ctrl + K Ctrl + S / Cmd + K Cmd + S
BeginnerBasics
Open the comprehensive Keyboard Shortcuts Editor map window to search or bind custom hotkeys.

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 + S

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.

Navigation & Search

Ctrl + P / Cmd + P
BeginnerBasics
Quick-Open: Search and open files inside your workspace on the fly.

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 + P

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Ctrl + Shift + F / Cmd + Shift + F
BeginnerBasics
Perform comprehensive global workspace text searches across all tracked file paths.

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 + F

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Ctrl + Tab / Cmd + Option + Left/Right
BeginnerBasics
Quickly swap active windows or navigate recent file tabs history buffers.

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/Right

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Alt + F12 / Option + F12
BeginnerBasics
Peek Definition: View the target code implementation inline inside an overlay window without jumping files.

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 + F12

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
F10 / F11
BeginnerBasics
Interactive Debugger: Step-Over or Step-Into source code statements when paused at breakpoints.

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 / F11

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.

Editing Productivity

Alt + Up / Down / Option + Up / Down
BeginnerBasics
Shift the current active line of code up or down in the file.

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 / Down

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Shift + Alt + Down / Shift + Option + Down
BeginnerBasics
Duplicate and paste the current line immediately underneath.

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 + Down

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Ctrl + / / Cmd + /
BeginnerBasics
Insert or remove syntax comments for the current line or selection block instantly.

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

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Shift + Alt + A / Shift + Option + A
BeginnerBasics
Toggle block/multiline comment structures directly over your selected text block.

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 + A

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Ctrl + Shift + [ / Cmd + Option + [
BeginnerBasics
Fold or collapse the active scope bracket, class body, or function block to clean up the workspace.

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

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Shift + Alt + F / Shift + Option + F
BeginnerBasics
Format the entire document according to active Prettier, ESLint, or runtime settings.

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 + F

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.

Multi-Cursor Hacks

Ctrl + D / Cmd + D
BeginnerBasics
Select and highlight the next match of the selected text block.

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 + D

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Alt + Click / Option + Click
BeginnerBasics
Insert separate blinking cursors to edit multiple parts of the file at once.

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 + Click

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Ctrl + Shift + L / Cmd + Shift + L
BeginnerBasics
Select and place cursors at all occurrences of your currently selected word inside the editor.

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 + L

Output Example

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.

Terminal & Layout

Ctrl + \ / Cmd + \
BeginnerBasics
Split your editor workspace layout into multiple side-by-side active windows.

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

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Ctrl + ` / Cmd + `
BeginnerBasics
Toggle the integrated terminal console panel up or down.

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

Console / Terminal
Keyboard shortcut action dispatched successfully inside VS Code active layout tab.
Ctrl + B / Cmd + B
BeginnerBasics
Show or hide the primary left sidebar layout explorer.

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 + B

Output Example

Console / Terminal
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

Error

Shortcuts overlapping with system keys

Solution

System desktop keymaps can intercept editor key sequences. Rebind conflicting shortcuts in the Keyboard Shortcuts menu.

Error

Integrated terminal crashing or slow

Solution

Verify the default shell path (e.g. bash, zsh, powershell) inside settings.json, or switch terminal renderers to 'canvas'.

Error

Git tracking missing in visual sidebar

Solution

Ensure the active folder contains a valid '.git' repository. Open individual files inside initialized folders.

Error

Extension key conflicts

Solution

Multiple installed keymap extensions (like Vim or Sublime) overwrite default bindings. Disable unused keymaps.

Error

Search index skipping code files

Solution

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.