VS Code Keyboard Shortcuts

Search VS Code shortcuts for macOS, Windows and Linux with descriptions.

A filterable Visual Studio Code keyboard shortcut reference covering the default keybindings for macOS and Windows/Linux, grouped by editing, navigation, search, multi-cursor and layout actions.

How do I open the Command Palette in VS Code?

Press Shift+Cmd+P on macOS or Ctrl+Shift+P on Windows and Linux. The Command Palette is the fastest way to run any command, including ones without a dedicated shortcut, by typing its name.

This is a filterable reference for Visual Studio Code keyboard shortcuts. Pick your operating system, then search by action or key combination to find the binding you need. It covers the default keymap, grouped into editing, multi-cursor, navigation, search, refactoring and layout, so you can learn the high-leverage shortcuts that replace the mouse.

How it works

VS Code ships with a default keymap that differs between macOS and Windows/Linux, mostly swapping the Command key for Control. The tool stores both bindings for each action and shows whichever matches the OS you select; on first load it guesses your platform. Search matches the action text, the group and either key column, so you can look up “comment”, “split editor”, or a partial chord like “shift cmd”. The group filter narrows the list to one family of commands when you want to study, say, every navigation shortcut at once.

Tips

The biggest productivity wins come from a handful of shortcuts: the Command Palette (Shift+Cmd+P / Ctrl+Shift+P) to run anything by name, Quick Open (Cmd+P) to jump to any file, multi-cursor selection (Cmd+D to add the next match), and move line (Alt+Up/Alt+Down). Symbols in the table follow Apple’s convention: ⌘ Command, ⌥ Option/Alt, ⌃ Control, ⇧ Shift. Any binding can be changed in the built-in Keyboard Shortcuts editor if it clashes with your habits. Everything runs in your browser; nothing is uploaded.