How-to · VS Code for Mac

How to use the command palette in VS Code on Mac: steps, shortcuts and fixes

Press ⇧⌘P (Shift Command P) in VS Code on your Mac to open the Command Palette. Type part of a command name, use the arrow keys to pick it, and press Return to run it.

Updated Checked against VS Code desktop app on macOS, Apple silicon and Intel Macs10 minEasy

Developer typing on a MacBook while using the command palette in VS Code on Mac
A MacBook keyboard, the kind you use with the palette · Image by Innovalabs from Pixabay

Quick answer

  • Press ⇧⌘P (Shift Command P) with VS Code in front to open the Command Palette.
  • Type a few letters of the command name, pick it with ↑ and ↓, then press Return.
  • If ⇧⌘P does nothing, press F1, or check System Settings > Keyboard > Keyboard Shortcuts for a conflict.
  • Change any shortcut with ⌘K ⌘S, or right-click an action and choose Configure Keybinding.

What you need

  • A Mac with an Apple silicon or Intel processor
  • VS Code installed, latest stable release 1.145 or newer
  • A file open in the editor for editor commands
  • A keyboard with Shift, Command, and P keys

How to Open and use the Command Palette in VS Code on Mac in VS Code on a Mac

  1. Bring VS Code to the front

    Click the VS Code window, or press ⌘Tab until VS Code is highlighted, then let go. The palette opens in the window that has focus, so click the one you want.

    Tip: Open a file in the editor first if you want editor commands. Many commands depend on context.

  2. Open the Command Palette

    ⇧⌘P

    Hold Shift and Command, then tap P. A text box appears at the top of the window with the cursor already in it. Press Esc to close it at any time.

    Tip: If nothing opens, see the troubleshooting section. Another app may be using the shortcut.

  3. Type part of the command

    Start typing. The list below the box narrows with each letter, so you rarely need the full name. Try typing split or terminal to see the list change.

    Tip: Short words give longer lists. Add a second word to narrow it down.

  4. Highlight the command you want

    ↑ ↓

    Press the down arrow to move the highlight through the list, and the up arrow to move back. The highlighted command is the one that runs, so check it before you continue.

    Tip: Some entries show their keyboard shortcut on the right side. That is a quick way to learn keys over time.

  5. Run it with Return

    Return

    Press Return. The palette closes and the highlighted command runs. If the command needs more input, the palette may stay open and ask you for it.

    Tip: Press Esc to back out at any point before you press Return.

  6. Open the palette from the menu bar

    ViewCommand Palette

    Click View in the menu bar at the top of the screen, then choose Command Palette. The official pages reviewed for this guide do not show this entry, so the wording may differ in your build.

    Tip: If the menu item is missing or named differently, use ⇧⌘P instead.

  7. Use F1 if ⇧⌘P is taken

    F1

    Press F1 with VS Code in front. The docs say F1 also works on desktop, and it is the workaround in Firefox. On many MacBooks, you may need to hold Fn to press it.

    Tip: Check your keyboard settings if the top row keys control brightness or volume.

  8. Search commands from Quick Open

    ⌘P

    Press ⌘P to open Quick Open. Type a question mark, and the box switches to show command suggestions. Delete the question mark to return to file search.

    Tip: Quick Open is the faster choice when you already know the file name.

  9. Move the palette out of the way

    Drag the palette by its top edge to move it. You can also use the Customize Layout control in the title bar to position it. Move it when the palette covers the line you are editing.

    Tip: Move it before you type, so you do not lose your place in the file.

  10. Open the Keyboard Shortcuts editor

    ⌘K⌘S

    Press ⌘K, release it, then press ⌘S. The Keyboard Shortcuts editor opens. Search for the command name, then change, remove, or reset its key binding.

    Tip: Press ⌘K ⌘S again later to come back to the same editor.

  11. Configure one command

    Right-click any action in the workbench, then choose Configure Keybinding. Type the new key combination. Test it right away in the editor, and check that the command runs.

    Tip: Pick keys that are not used by macOS or by other apps you run.

  12. Look for a conflict in System Settings

    Apple menuSystem SettingsKeyboardKeyboard Shortcuts

    Choose Apple menu > System Settings, click Keyboard, then click Keyboard Shortcuts. A warning icon marks shortcuts that conflict with others.

    Tip: Note the original key before you change it, so you can put it back.

  13. Reassign the conflicting key

    Double-click the conflicting shortcut, then press the new key combination. Apple's guide describes this flow for changing a conflicting shortcut on a Mac.

    Tip: A change in System Settings may apply system-wide, not only in VS Code.

The Command Palette is the fastest way to reach any VS Code command on your Mac. You do not need to know where a command sits in the menus. You type what you want, and VS Code finds it. This guide covers the keys, the menu route, the fixes for when the shortcut fails, and how to change a shortcut you use often.

What the Command Palette does

The palette is a text box that lists commands. It opens at the top of the VS Code window. The docs describe it as access to many commands, and the list changes with what you are doing.

Think of it as a search box for VS Code itself. You type a few letters. The list narrows. Then you press Return, and the command runs.

The list depends on context. If a file is open in the editor, you see editor commands. On an empty window, many of those are missing. That is the most common reason people think the palette is broken.

The same palette runs on Apple silicon Macs and Intel Macs. The Mac setup page offers a Universal build that covers both, so you do not need to pick a version by chip.

Open it with ⇧⌘P

Press Shift, Command, and P together. The symbols are ⇧ for Shift, ⌘ for Command, and P for the letter key. The official docs call ⇧⌘P the most important key combination to know in VS Code.

Hold Shift and Command with one hand, then tap P with the same hand. After a few tries it becomes muscle memory. Keep your other fingers off the keys, so nothing else gets pressed.

When the palette opens, the cursor is already in the box. You can start typing right away. Press Esc to close the palette without running anything.

Developer typing on a MacBook while using the command palette in VS Code on Mac
A MacBook keyboard, the kind you use with the palette · Image by Innovalabs from Pixabay

Run a command from the palette

Typing narrows the list. The arrow keys move the highlight. Return runs whichever command is highlighted. Here is a short session you can copy.

  1. Press ⇧⌘P. The box opens at the top of the window.
  2. Type split. The list shows commands with split in the name.
  3. Press ↓ until the command you want is highlighted.
  4. Press Return. The palette closes and the command runs.

Read the list before you press Return the first few times. Commands with similar names sit near each other. A wrong pick costs a second, but it can still change your layout or your settings.

Some commands need more input. The palette may then show a second prompt, such as a list of choices or a text field. Type your answer and press Return again. Press Esc to back out at any point.

Other ways in: F1 and the View menu

The docs say F1 also opens the Command Palette on desktop. That makes F1 the backup when another app takes ⇧⌘P. On many MacBooks, the top row keys control brightness and volume by default, so you may need to hold Fn to press F1.

You can also open the palette from the menu bar. Click View, then choose Command Palette. The official pages reviewed for this guide do not show this entry, so check the wording in your build. If you cannot find it, use ⇧⌘P.

Quick Open with ⌘P and the question mark

The palette has a close cousin called Quick Open. Press ⌘P to open it. Quick Open jumps to files by name, which is what most people want from it.

Type a question mark in Quick Open, and the same box switches to command suggestions. This is handy when you already have a file in mind. You can jump to a file with ⌘P, then type ? and a command name.

Quick Open is faster when you know the file name. The full palette is faster when you know the action. Pick the tool that matches the job.

Find the shortcut for a command

Many palette entries show their keyboard shortcut on the right side of the list. If nothing appears there, that command has no key yet. You can give it one, using the steps below.

For a full list, choose Help > Keyboard Shortcut Reference. The docs say this opens a PDF of shortcuts. The macOS version uses the US English layout, so check the keys if your keyboard layout is different.

The Tips and Tricks page also points to Help > Welcome. It is a good first stop if you are new to VS Code and want a short tour.

1.145

Latest stable VS Code release, dated November 4, 2026

Visual Studio Code Updates

75.9%

Of 2025 Stack Overflow survey respondents reported using VS Code

Stack Overflow Developer Survey 2025: Technology

Change a shortcut you use often

Press ⌘K, release it, then press ⌘S. This opens the Keyboard Shortcuts editor. The docs say you can change, remove, or reset shortcuts there.

There is a faster route when you already know the command. Right-click any action in the workbench and choose Configure Keybinding. Then type the new key combination.

Pick keys that other apps do not use. Command plus a letter shows up in many app menus, so a clash is likely. Test the new key in the editor and check that the command runs.

Write down the original key before you change anything. The editor can reset a binding later, but a note makes it quicker.

Stuck finding the palette, or a shortcut keeps failing? Ask Lazur out loud while the window is in front of you.

Lazur looks at your screen only while you hold the shortcut. Hold ⌥ ⌘, ask where the Command Palette is, and Lazur draws a circle and a label around it. Ask how to change a shortcut, and Lazur guides you one click at a time, waiting for each click. Lazur does not press the keys or click for you.

Fix a shortcut that macOS takes over

Sometimes ⇧⌘P does nothing because macOS or another app already uses that combination. Apple's guide shows where to find the conflict in System Settings. A warning icon marks conflicting shortcuts.

  • Choose Apple menu > System Settings.
  • Click Keyboard, then click Keyboard Shortcuts.
  • Look for the warning icon beside the shortcut that clashes.
  • Double-click the shortcut and press the new key combination.

Changing a macOS shortcut affects that feature system-wide. It is not limited to VS Code. Note the original combination so you can put it back.

If the press seems lost, VS Code may not be receiving it. Open the palette with F1 and run Developer: Toggle Keyboard Shortcuts Troubleshooting. It logs the shortcuts VS Code receives, so you can see whether ⇧⌘P arrives.

Palette shortcuts on a Mac, with the source for each.
ActionKey on MacWhere the docs say it
Open the Command Palette⇧⌘PVS Code UI docs
Open the palette, backup keyF1Codespaces and web docs
Quick Open⌘PVS Code Tips and Tricks
Keyboard Shortcuts editor⌘K ⌘SVS Code Keybindings docs
Run the highlighted commandReturnStandard macOS key

A worked example: split the editor from the palette

Say you want two files side by side. Open the first file. Press ⇧⌘P and type split. The list narrows to commands with split in the name, and one of them splits the editor.

Press ↓ to highlight the split command, then press Return. A second view of the editor appears beside the first. Repeat the steps to split again.

The same flow works for the terminal. Type terminal, pick the command that shows the terminal, and press Return. The palette saves you from hunting through the menus.

For the full split steps, read the guide on splitting the editor. For the terminal, read the guide on toggling the integrated terminal.

Programmer at a desk with a laptop open to a code editor window
A code editor open on a laptop at a desk · Image by Innovalabs from Pixabay

Mistakes people make with the palette

  • Opening the palette with no file open, then wondering why editor commands are missing.
  • Pressing Return before reading the highlighted line. The highlight is what runs.
  • Rebinding a key that macOS uses, then forgetting what it was before.
  • Trusting a menu label from an old tutorial. Labels can change between releases.
  • Scrolling a long file list in Quick Open when a question mark would show commands.

Each mistake costs seconds, not work. Most fixes come down to reading the list before you press Return.

Using the palette in the browser or Firefox

VS Code for the Web runs in a browser tab. Firefox reserves ⇧⌘P, so the shortcut will not open the palette there. The docs name F1 as the workaround.

The browser version has limits. Only a subset of extensions run there, and older browsers may not work. The docs recommend desktop, Codespaces, or Remote Tunnels for terminal, build, or debug work.

This guide did not verify Chrome, Edge, or Safari. If ⇧⌘P fails there, try F1 first, then check the browser's own shortcut list.

Where to go next

Learn one shortcut at a time. Start with the ones you repeat every day. Extensions add commands the palette can reach, and the extension guide shows how to add one.

Good next reads are the guide to multiple cursors and the guide to find and replace across files. Both lean on shortcuts you will meet in the palette.

If you want Lazur beside VS Code while you work, see the VS Code page for how it points and explains inside the editor.

VS Code shortcuts for this on Mac

VS Code keyboard shortcuts on Mac
To do thisPress
Open the Command Palette⇧⌘P
Open the palette, backup keyF1
Quick Open⌘P
Keyboard Shortcuts editor⌘K⌘S
Move through the list↑ ↓
Run the highlighted commandReturn
Close the paletteEsc

If it does not work

⇧⌘P does nothing or opens a different window
Another app or macOS may already use the combination. Check System Settings, Keyboard, Keyboard Shortcuts for a warning icon. Press F1 in the meantime.
A command is missing from the palette
Commands depend on context. Open a file, click into the editor, and search again. Some commands only appear while their feature is active.
You want to see whether VS Code receives the keypress
Open the palette with F1 and run Developer: Toggle Keyboard Shortcuts Troubleshooting. It logs the shortcuts VS Code receives.
The palette covers the code you are editing
Drag its top edge to move it, or use the Customize Layout control in the title bar.
⇧⌘P fails in the browser version
Firefox reserves ⇧⌘P for itself. Use F1 instead. Chrome, Edge, and Safari were not verified for this guide.

Faster with Lazur

Do it faster: ask Lazur while you are in VS Code

Hold ⌥ ⌘ and say what you want. Lazur sees your VS Code window. Lazur draws a circle and a label around the button or menu you need.

  • 1

    Hold ⌥⌘ and talk

  • 2

    Lazur draws a circle and a label around the button or menu you need.

  • 3

    You stay in VS Code. Nothing to copy into a chat window.

Free for 3 days, then $18/month. Download for Mac

You say“Where is the Command Palette in VS Code?”

Lazur · points at itAsk where the Command Palette is, and Lazur draws a circle and a label around it on your screen. Lazur points and explains. You press the keys yourself.

VS Code
ExplorerSearchCommand PaletteRight hereSource ControlRun

Questions people ask

Why does ⇧⌘P not open the Command Palette on my Mac?

The most common cause is another app or macOS using the same keys. Check System Settings > Keyboard > Keyboard Shortcuts for a warning icon. Until you fix it, press F1, which the docs list as a way in.

Is F1 a real alternative to ⇧⌘P in the desktop app?

Yes. The docs say F1 also opens the Command Palette on desktop. On many MacBooks you need to hold Fn to press it, unless the top row is set to act as standard function keys.

Why does a command I want not appear in the palette?

Commands depend on your current context. Open a file, click into the editor, then search again. Some commands only appear while a related feature is active.

How do I find the shortcut for a command I use a lot?

Look at the right side of the palette entry. If a shortcut is shown, it appears there. For a full list, choose Help > Keyboard Shortcut Reference, or open the editor with ⌘K ⌘S and search.

Does the Command Palette work in Firefox?

Not with ⇧⌘P. Firefox reserves that shortcut. The docs name F1 as the workaround in the browser version of VS Code.

Can I change a shortcut without losing the defaults?

Yes. Use the Keyboard Shortcuts editor with ⌘K ⌘S, or right-click an action and choose Configure Keybinding. The docs say you can also reset a binding from the same editor.

Can Lazur open the Command Palette for me?

No. Lazur does not press keys or click for you. Hold ⌥ ⌘ and ask where the palette or a command is. Lazur draws a circle and a label around it, and it can guide you one click at a time.

Sources

  1. VS Code User Interface docs · Microsoft · checked 2026-11-09
  2. VS Code Tips and Tricks · Microsoft · checked 2026-11-09
  3. VS Code Key Bindings · Microsoft · checked 2026-11-09
  4. VS Code Keybindings configuration · Microsoft · checked 2026-11-09
  5. VS Code for the Web · Microsoft · checked 2026-11-09
  6. Installing VS Code on macOS · Microsoft · checked 2026-11-09
  7. Visual Studio Code Updates · Microsoft · checked 2026-11-09
  8. Using the VS Code Command Palette in GitHub Codespaces · GitHub · checked 2026-11-09
  9. Apple Support: Change a conflicting keyboard shortcut on Mac · Apple · checked 2026-11-09
  10. Stack Overflow Developer Survey 2025: Technology · Stack Overflow · checked 2026-11-09

Try Lazur free for 3 days

Hold a key and ask. Lazur sees your screen, points at the button and talks you through it, in any Mac app. No credit card.