Skip to content
VS Code Shortcut PDF — Complete Keyboard Reference

VS Code Shortcut PDF — Complete Keyboard Reference

DodaTech Updated Jun 20, 2026 4 min read

📄 Printable PDF: Use your browser’s Print (Ctrl+P / Cmd+P) → “Save as PDF” to get a printer-friendly PDF of this VS Code shortcut cheatsheet.

VS Code keyboard shortcuts, editing features, IntelliSense, debugging, extensions, settings, terminal, and Git integration — a productivity reference for daily use.

Command Palette & Quick Open

Shortcut (Windows/Linux)Shortcut (macOS)What it does
Ctrl+Shift+PCmd+Shift+PCommand Palette
Ctrl+PCmd+PQuick Open (file)
Ctrl+TabCtrl+TabSwitch tabs
Ctrl+WCmd+WClose tab
Ctrl+Shift+NCmd+Shift+NNew window
Ctrl+BCmd+BToggle sidebar
`Ctrl+```Ctrl+``Toggle terminal
Ctrl+JCmd+JToggle panel

Multi-Cursor & Selection

ShortcutWhat it does
Alt+ClickAdd cursor at click position
Ctrl+Alt+↑/↓Add cursor above / below
Ctrl+DSelect next match of selection
Ctrl+Shift+LSelect all matches
Shift+Alt+→Expand selection
Shift+Alt+←Shrink selection
Alt+↑/↓Move line up / down
Shift+Alt+↑/↓Duplicate line up / down
Ctrl+Shift+KDelete line
Ctrl+EnterInsert line below
Ctrl+Shift+EnterInsert line above

Find & Replace

ShortcutWhat it does
Ctrl+FFind in file
Ctrl+HFind and replace
Ctrl+Shift+FFind in all files
Ctrl+Shift+HReplace in all files
F3Next match
Shift+F3Previous match
Alt+EnterSelect all matches of find
Ctrl+Shift+OGo to symbol in file

Editor & Formatting

ShortcutWhat it does
Ctrl+/Toggle line comment
Shift+Alt+FFormat document
Ctrl+Shift+IFormat selection
Ctrl+] / Ctrl+[Indent / outdent
F2Rename symbol
Ctrl+GGo to line
Ctrl+Shift+\Go to matching bracket
Ctrl+- / Ctrl+=Zoom out / in
Ctrl+Shift+[Fold (collapse) region
Ctrl+Shift+]Unfold (expand) region
Ctrl+K Ctrl+FClose other tabs in group

IntelliSense & Code Navigation

ShortcutWhat it does
Ctrl+SpaceTrigger suggestion
Ctrl+.Quick Fix (lightbulb)
Ctrl+Shift+SpaceTrigger parameter hints
F12Go to definition
Alt+F12Peek definition
Shift+F12Go to references
Ctrl+ClickGo to definition (mouse)
Ctrl+Shift+F12Peek references
Ctrl+TShow all symbols
Ctrl+Shift+OGo to symbol in file
Ctrl+K Ctrl+IShow hover info

Debugging

ShortcutWhat it does
F5Start / continue
Shift+F5Stop
Ctrl+F5Start without debugging
Ctrl+Shift+F5Restart
F9Toggle breakpoint
F10Step over
F11Step into
Shift+F11Step out
Ctrl+Shift+BBuild task
Ctrl+Shift+DDebug view
Ctrl+K Ctrl+IInspect value on hover

Integrated Terminal

ShortcutWhat it does
Ctrl+`Toggle terminal
`Ctrl+Shift+``New terminal
Ctrl+Shift+5Split terminal
Ctrl+WClose terminal (when focused)
Ctrl+CCancel / copy in terminal
Ctrl+VPaste in terminal
Ctrl+Shift+↑/↓Scroll terminal up / down
F12Open in editor (path)

Git Integration

ShortcutWhat it does
Ctrl+Shift+GSource Control view
Ctrl+EnterCommit (in commit input)
`Ctrl+Shift+``Open terminal
Alt+G GGitLens: toggle file blame
Ctrl+K Ctrl+Shift+CView commit details
F1Git: PullPull from remote
F1Git: PushPush to remote

Split Editor & Layout

ShortcutWhat it does
Ctrl+\Split editor
Ctrl+1 / 2 / 3Focus editor group
Ctrl+Shift+5Split into two groups
Ctrl+K Ctrl+→Focus next group
Ctrl+K Ctrl+←Focus previous group
Ctrl+WClose editor group

Refactoring

ShortcutWhat it does
F2Rename symbol
Ctrl+.Quick Fix / refactor menu
Ctrl+Shift+RRefactor (with submenu)
Ctrl+Shift+EnterInsert line before
Alt+↑/↓Move line
Shift+Alt+←/→Shrink / expand selection

Extension Shortcuts (Common)

ExtensionShortcutWhat it does
GitLensAlt+G GToggle file blame
Bracket Pair ColorizerAuto-colors brackets
PrettierShift+Alt+FFormat with Prettier
ESLintCtrl+.Fix lint issues
Live ServerAlt+L Alt+OOpen with Live Server

Useful settings.json

{
  "editor.fontSize": 14,
  "editor.tabSize": 2,
  "editor.formatOnSave": true,
  "editor.minimap.enabled": false,
  "editor.wordWrap": "on",
  "files.autoSave": "onFocusChange",
  "terminal.integrated.fontSize": 13,
  "workbench.colorTheme": "One Dark Pro",
  "workbench.startupEditor": "none",
  "editor.rulers": [80, 100],
  "editor.renderWhitespace": "selection"
}

Snippets

// File > Preferences > Configure User Snippets
{
  "Log to console": {
    "prefix": "log",
    "body": ["console.log('$1', $1);$2"],
    "description": "Log variable to console"
  },
  "Arrow function": {
    "prefix": "af",
    "body": ["const $1 = ($2) => {", "  $3", "};"],
    "description": "Arrow function"
  }
}

Useful Extensions

ExtensionPurpose
PrettierCode formatter
ESLintJS/TS linting
GitLensGit blame annotations
Live ServerLocal dev server with reload
Thunder ClientAPI testing
DockerDockerfile / Compose support
Path IntellisenseAuto-complete file paths
Tailwind CSS IntelliSenseTailwind class completion
Error LensInline error display
GitHub CopilotAI-powered code completion
How do I open the VS Code Command Palette?
Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS). This opens the Command Palette where you can run any VS Code command by typing its name. It’s the fastest way to access features you haven’t memorized shortcuts for yet.
How do I search and replace across multiple files in VS Code?
Press Ctrl+Shift+F to open the Search view, type your search term, then click the arrow next to the search input to expand the replace field. You can use regex with the .* toggle. Double-click a result to open that file at the match location.
How do I create custom snippets in VS Code?
Go to File > Preferences > Configure User Snippets, select a language (or “New Global Snippets file”), then define snippets in JSON format. Each snippet has a prefix (trigger text), body (the output), and description. Type the prefix then press Tab to expand.

See the full VS Code guide for advanced configuration.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro