What Is the VS Code Command Palette and How to Use It

· Category: VS Code & Developer Tools

Short answer

The Command Palette is a searchable list of every available command in VS Code. It provides quick access to features without navigating menus or memorizing shortcuts.

How it works

Press Ctrl+Shift+P (or Cmd+Shift+P) to open the palette. As you type, VS Code filters commands by name. You can also type > to explicitly search commands, @ for symbols, and # for symbols across the workspace.

Example

Type "Format Document" to instantly format the current file, or "Git: Commit" to stage and commit changes without leaving the editor.

Why it matters

The Command Palette eliminates context switching. Instead of hunting through nested menus, you can execute any action in seconds. It is especially valuable when using extensions that add dozens of new commands.