VS Code Cheat Sheet

Comprehensive VS Code reference for navigation, editing, multi-cursor, search, terminal, debugging, settings, and Git workflows.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all

Getting Around

Core navigation and command entry points used constantly.

Open Command Palette

Run any VS Code command quickly.

textANYpalettenavigationshortcuts
text
Windows/Linux: Ctrl+Shift+P
macOS: Cmd+Shift+P

Fastest way to discover and invoke built-in commands, extension commands, and settings actions.

Quick Open file

Jump to files, symbols, and recent items.

textANYfilesnavigationquick-open
text
Windows/Linux: Ctrl+P
macOS: Cmd+P

Type file names, add `:` for line number, or `@` for symbols depending on context.

Go to line

Jump directly to a line number in the current file.

textANYnavigationline
text
Windows/Linux: Ctrl+G
macOS: Ctrl+G

Go to symbol in file

Jump to a function, class, or symbol in the current file.

textANYsymbolsnavigation
text
Windows/Linux: Ctrl+Shift+O
macOS: Cmd+Shift+O

Show symbols in workspace

Search symbols across the workspace.

textANYsymbolsworkspacenavigation
text
Windows/Linux: Ctrl+T
macOS: Cmd+T

Basic Editing

Essential editing actions used in everyday coding.

Delete line

Remove the current line quickly.

textANYeditingline
text
Windows/Linux: Ctrl+Shift+K
macOS: Cmd+Shift+K

Insert line below

Open a new line below without moving manually.

textANYeditingline
text
Windows/Linux: Ctrl+Enter
macOS: Cmd+Enter

Insert line above

Open a new line above the current line.

textANYeditingline
text
Windows/Linux: Ctrl+Shift+Enter
macOS: Cmd+Shift+Enter

Move line up or down

Reorder code without cut/paste.

textANYeditinglineproductivity
text
Windows/Linux: Alt+Up / Alt+Down
macOS: Option+Up / Option+Down

Copy line up or down

Duplicate the current line or selection.

textANYeditingduplicateproductivity
text
Windows/Linux: Shift+Alt+Up / Shift+Alt+Down
macOS: Shift+Option+Up / Shift+Option+Down

Format document

Format the entire active file.

textANYformattingediting
text
Windows: Shift+Alt+F
Linux: Ctrl+Shift+I
macOS: Shift+Option+F

Search, Terminal, and CLI

Search and terminal flows users need every day.

Find in current file

Search inside the current editor.

textANYsearchfind
text
Windows/Linux: Ctrl+F
macOS: Cmd+F

Find in files

Search across the whole workspace.

textANYsearchworkspace
text
Windows/Linux: Ctrl+Shift+F
macOS: Cmd+Shift+F

Toggle integrated terminal

Open or focus the integrated terminal.

textANYterminalshortcuts
text
Windows/Linux: Ctrl+`
macOS: Ctrl+`

Open current folder in VS Code

Launch VS Code from a shell.

bashANYcliterminalworkflow
bash
code .

Open a diff view from the CLI

Compare two files in VS Code.

bashANYclidiff
bash
code --diff old-file.ts new-file.ts

Settings, Debugging, and Git

High-impact settings, launch configs, and source control actions.

Open Settings UI

Search and edit settings through the UI.

textANYsettingsui
text
Windows/Linux: Ctrl+,
macOS: Cmd+,

Enable format on save

Format files automatically when saved.

jsonANYsettingsformatting
json
{
  "editor.formatOnSave": true
}

Start debugging

Launch the current debug configuration.

textANYdebugging
text
F5

Basic Node.js launch.json

Minimal launch config for debugging a Node script.

jsonANYdebuggingnodejslaunch-json
json
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Debug current file",
      "program": "${file}"
    }
  ]
}

Open Source Control view

Jump to the SCM panel quickly.

textANYgitscm
text
Windows/Linux: Ctrl+Shift+G
macOS: Ctrl+Shift+G

Recommended next

No recommendations yet.