THE SHORTCUT REFERENCE

Visual Studio Code
keyboard shortcuts.

Keep your attention on the code. Start with the command palette, jump between files, then learn the editing shortcuts you use every day. These defaults assume the standard US keyboard layout.

16 actionsWindows · macOS · Linux

Search VS Code shortcuts

● Runs in your browser

Matches

Loading search…

KEEP THIS HANDY

The complete starter reference

Official reference ↗

Defaults for desktop apps and US keyboard layouts. On some keyboards, function keys need Fn. Reviewed 2026-10-06. Search filters above apply to this reference too.

Navigation

Command palette

Find and run editor commands.

Windows
CtrlShiftP
macOS
ShiftCmdP
Linux
CtrlShiftP
Navigation

Find a file

Jump to a file by name.

Windows
CtrlP
macOS
CmdP
Linux
CtrlP
Search

Find in file

Search the current document.

Windows
CtrlF
macOS
CmdF
Linux
CtrlF
Search

Search all files

Search across your workspace.

Windows
CtrlShiftF
macOS
ShiftCmdF
Linux
CtrlShiftF
Files

Save file

Write changes to disk.

Windows
CtrlS
macOS
CmdS
Linux
CtrlS
Editing

Undo

Reverse your last edit.

Windows
CtrlZ
macOS
CmdZ
Linux
CtrlZ
Editing

Redo

Restore an undone edit.

Windows
CtrlY
macOS
ShiftCmdZ
Linux
CtrlY
Editing

Delete line

Remove the current line.

Windows
CtrlShiftK
macOS
ShiftCmdK
Linux
CtrlShiftK
Editing

Move line down

Reorder code without copying.

Windows
Alt↓
macOS
Option↓
Linux
Alt↓
Editing

Format document

Use the configured formatter.

Windows
AltShiftF
macOS
OptionShiftF
Linux
CtrlShiftI
Editing

Rename symbol

Rename supported symbol references.

Windows
F2
macOS
F2
Linux
F2
Workspace

Toggle terminal

Open the integrated terminal.

Windows
Ctrl`
macOS
Ctrl`
Linux
Ctrl`
Editing

Add line comment

A two-step key sequence.

Windows
CtrlKthenCtrlC
macOS
CmdKthenCmdC
Linux
CtrlKthenCtrlC
Workspace

Keyboard shortcut editor

Inspect or customize bindings.

Windows
CtrlKthenCtrlS
macOS
CmdKthenCmdS
Linux
CtrlKthenCtrlS

When the keys do something else

The active tool, selection or input field matters. Check your app’s keyboard shortcut settings and the official VS Code reference if a combination behaves differently. Customized shortcuts and extensions can override these defaults.

← Browse another app
YOUR PRIVACY

Nothing to opt out of.

This version loads no advertising, analytics or tracking cookies. Searches stay in your browser.

This panel is a placeholder for a consent management platform. It does not collect advertising consent.

Read the cookie policy