Command palette

The command palette lists the editor’s commands and runs the one you pick, so you can reach a command by typing part of its name. Open it with Ctrl+/ or Ctrl+Shift+P (Cmd on a Mac), or from its menu entry. It lists only the commands that can run right now, and running one closes the palette first.

On this page

Open the palette

Press Ctrl+/ or Ctrl+Shift+P. On a Mac, press Cmd in place of Ctrl.

You can also select Command palette from the menu.

Pressing the same keys again closes the palette.

Find and run a command

  1. Type part of a command’s name or one of its keywords in the search box, which reads “Search menus, commands, and discover hidden gems”. Letters and numbers typed anywhere in the palette go to the search box.

  2. Use ↑ and ↓ to choose a command, or move the mouse over it. Press Enter, or click it.

  3. The palette closes, and then the command runs.

The search ignores capitals, accents, and the characters <, >, _, |, space, and -. It also matches each command’s keywords.

With no search, commands are grouped by category, in the order in the table below. With a search, matches are ranked by how closely they match.

While the search box is empty, the command you ran last is listed first, under Recently used.

Each command shows the keyboard shortcut that runs it, when it has one. On a phone, no shortcuts are shown.

At the bottom, the palette shows ↑↓ for Select, ↵ for Confirm, and Esc for Close. It hides these on a phone.

Commands by category

Category

What it holds

App

What it holds

Switching the theme, opening the library panel, and opening search. The web app adds its own commands, listed below.

Export

What it holds

Export image, save to a file, save to the active file, and copy as PNG or SVG.

Editor

What it holds

Undo, redo, zoom, zen mode, view mode, grid, minimap, snapping, hints, the shortcut list, select all, locking, stats, and the canvas background.

Tools

What it holds

Each drawing tool, the tool lock, Text to diagram, and Mermaid to Excalidraw.

Elements

What it holds

Group, align, copy, paste styles, layer order, flip, duplicate, link commands, and the stroke and background colours.

Library

What it holds

Your library items, by name. They appear once you type at least two characters.

The category order is App, Export, Editor, Tools, Elements, and then Library.

Which commands you see

Only commands that can run now

The list leaves out any command whose condition does not hold right now.

In view mode

In view mode, these commands are left out: the clear canvas command, the library panel, the stroke and background colours, the canvas background, each tool, the tool lock, Text to diagram, and Mermaid to Excalidraw.

Commands built from editor actions follow each action’s own view-mode setting, which this page does not list.

Commands that need a selection

Element commands, such as group, align, and copy, need at least one selected shape. An action with its own rule uses that rule instead.

The stroke and background colour commands need a selected shape that can take that colour.

Text to diagram and Mermaid

Text to diagram and Mermaid to Excalidraw appear only while AI is on. AI is on unless the app embedding the editor turns AI off.

Clear canvas

The clear canvas command asks you to confirm before it clears the canvas. Confirming runs the clear.

Library items

Typing at least two characters also searches your library items by name. Items without a name are not listed.

Choosing a library item inserts it on the canvas.

Web app commands

The web app adds these commands to the palette:

  • Live collaboration, and sharing, when collaboration is available.
  • Stop the session, only while you are in a session.
  • Links to GitHub, X, Discord, and YouTube.
  • Excalidraw+ commands, and export to Excalidraw+.
  • Install the app, only when the browser offers it.

If a command is missing

What you see

What it means

What to do

“No matching commands...”

What it means

Nothing in the list matches the search, or the command is left out right now.

What to do

Shorten the search, or check the sections above for why the command is hidden.

A command under Recently used is faded, and shows “Command is not available...” on hover

What it means

Its condition does not hold right now, such as no shape being selected.

What to do

Select a shape if the command needs one, or change what you are doing, then open the palette again.

Sources

Related pages