Visual Studio Code Keyboard Shortcuts

VS Code is one of the most keyboard-driven applications you can use. The command palette — opened with a single shortcut — exposes every command in the editor. From there, most editing, navigation, and tooling tasks can be handled without the mouse. The shortcut reference covers all three desktop platforms: Mac, Windows, and Linux. The modifier key differs by platform (Command on Mac, Ctrl on Windows and Linux), and a handful of shortcuts use platform-specific secondary keys. Everything else in the shortcut set transfers directly across platforms. VS Code's default shortcuts are covered here. VS Code also supports full keyboard binding customization — you can remap any shortcut through its keyboard settings — but the pages on HKeys cover the defaults shipped with each platform.

Choose your platform: full shortcut list + printable PDF

macOS Uses Command (⌘) as the primary modifier. Cmd+Shift+P opens the command palette. Option (⌥) is used for word-by-word cursor movement and a few multi-cursor operations. Some macOS system shortcuts can overlap with VS Code — the platform page notes where this occurs.

Windows Uses Ctrl as the primary modifier. Ctrl+Shift+P opens the command palette. Alt is used for multi-cursor operations and word navigation differs from Mac. F-key shortcuts work without Fn by default.

Linux Uses Ctrl, matching Windows. The shortcut set is identical to Windows. Desktop environment shortcuts can conflict with a small number of VS Code bindings — more common on Linux than on other platforms. The VS Code keyboard customization panel is where Linux users most often make adjustments.

What VS Code shortcuts cover

Command palette. The single most important shortcut in VS Code. Opens a searchable list of every editor command — running tasks, changing settings, installing extensions, and anything else you'd normally dig through menus to find.

File navigation. Quick open (search files by name), switching between open editors, navigating the file explorer, and recently opened files all have keyboard shortcuts.

Editor and cursor. Single and multi-cursor placement, word-by-word navigation, line selection, code folding, and block movement.

Integrated terminal. Opening and closing the terminal panel, creating new terminal instances, and switching between them.

Debugger. Starting and stopping debug sessions, stepping through code (step over, step into, step out), breakpoint management, and debug console navigation.

Source control. Staging files, opening the diff view, and navigating between changes all have shortcuts in VS Code's built-in Git integration.

Printable PDF

A printable PDF of VS Code shortcuts is available for each platform. The debugger and terminal shortcut sections are long enough that a printed reference is useful during the first weeks of learning them — especially since those areas are used less frequently than editing shortcuts and harder to memorize passively.

FAQ

What is the most important VS Code keyboard shortcut to learn first?

The command palette. It opens a searchable list of every command in VS Code, so anything you'd normally find in a menu is one shortcut away. On Mac: Cmd+Shift+P. On Windows and Linux: Ctrl+Shift+P. Once you know it, you can find every other shortcut from within VS Code itself.

Do VS Code shortcuts work the same across Mac, Windows, and Linux?

The actions are the same, but the modifier keys differ. Mac uses Command (⌘); Windows and Linux use Ctrl. A few shortcuts also use platform-specific secondary modifiers — Option on Mac for word navigation, Alt on Windows. Each platform page shows the exact keys.

Does HKeys cover VS Code's customized shortcuts or just the defaults?

Only the defaults. VS Code supports full keyboard remapping, so users' configurations vary widely. The pages on HKeys cover the shortcuts VS Code ships with on each platform before any customization.

Can I get a printable version of the VS Code shortcut list?

Yes. Each platform page has a downloadable PDF. Free HKeys accounts include PDF downloads.

References

This section lists official sources and documentation for Visual Studio Code. These references are here so you can verify shortcut behavior. They are especially useful when a command feels different, or when an update changes how a shortcut works.

Official references are the safest place to check platform differences, keyboard layout issues, browser conflicts, operating system shortcut conflicts, and app-version differences. Even a familiar shortcut can behave differently when the OS reserves a key pattern or a keyboard layout changes what your hands actually produce. When something feels off, treat the docs as the source of truth.

Want to suggest a new app, report a bug, or get help? Email us at info@hkeys.app.

For anything else or just a quick hello, write to us at info@hkeys.app.