Skip to main content

Command Palette in VS Code (macOS)

Press Shift + Command + P to open a list of every command and run one by typing part of its name.

What it does

The Command Palette lists every command of the editor and of the installed extensions. Type a few letters of what you want, such as "format" or "rename", pick the command and press Enter. Each entry shows its own shortcut beside it, so the list also teaches you the keys for the commands you run often. A command that has no shortcut is still reachable here.

The same shortcut on other platforms

PlatformShortcut
macOSthis pageShift + Command + P
Windows
Linux

More VS Code shortcuts: General

  • Quick Open File
  • New Window
  • Toggle Sidebar
  • Toggle panel
  • Explorer

All 71 VS Code shortcuts for macOSThe full list has a search and a printable PDF.

Questions

What is the VS Code shortcut for Command Palette on macOS?

⇧⌘P (Shift + Command + P). Press it to open a list of every command and run one by typing part of its name.

What is the shortcut for Command Palette in VS Code on Windows and Linux?

On Windows it is Ctrl+Shift+P. On Linux it is Ctrl+Shift+P.