VS Code Shortcuts

VS Code Keyboard Shortcuts for Mac (2026)

Complete VS Code keyboard shortcuts for Mac. All shortcuts use Cmd (⌘) instead of Ctrl.

Quick answer: VS Code Mac shortcuts: Command Palette = Cmd+Shift+P | Quick Open = Cmd+P | Toggle Terminal = Ctrl+` | Format = Shift+Option+F | Go to Definition = F12

All Shortcuts

ActionShortcut
Command PaletteCmdShiftP
Quick Open FileCmdP
Toggle TerminalCtrl`
Format DocumentShiftOptionF
Go to DefinitionF12
Find in FilesCmdShiftF
Split EditorCmd\
Toggle SidebarCmdB

Frequently Asked Questions

What is the VS Code Command Palette shortcut on Mac?

Press Cmd+Shift+P on Mac to open the VS Code Command Palette.

How do I format code in VS Code on Mac?

Press Shift+Option+F on Mac to format the entire document in VS Code.

Search 3,400+ shortcuts across 245 platforms

Explore All Platforms Practice Shortcuts