---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://excalidraw.heycactus.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
lang: en
---

# 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.

> Verified against the product on 2026-11-23

## 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 | Switching the theme, opening the library panel, and opening search. The web app adds its own commands, listed below. |
| Export | Export image, save to a file, save to the active file, and copy as PNG or SVG. |
| Editor | Undo, redo, zoom, zen mode, view mode, grid, minimap, snapping, hints, the shortcut list, select all, locking, stats, and the canvas background. |
| Tools | Each drawing tool, the tool lock, Text to diagram, and Mermaid to Excalidraw. |
| Elements | Group, align, copy, paste styles, layer order, flip, duplicate, link commands, and the stroke and background colours. |
| Library | 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...” | Nothing in the list matches the search, or the command is left out right now. | 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 | Its condition does not hold right now, such as no shape being selected. | Select a shape if the command needs one, or change what you are doing, then open the palette again. |

## Related pages

[Keyboard shortcuts](https://excalidraw.heycactus.ai/jhn9a5-keyboard-shortcuts) lists the key combinations for the same editor actions.

[Library](https://excalidraw.heycactus.ai/bgy4s7-library) explains the items the palette lists after you type two characters.

[Export and save](https://excalidraw.heycactus.ai/tv5dsf-export-and-save) covers the export commands.

[Shape properties](https://excalidraw.heycactus.ai/fyx5xb-shape-properties) covers the colour and stroke settings that the colour commands open.

[Live collaboration](https://excalidraw.heycactus.ai/wmx9p9-live-collaboration) covers the sharing and session commands.

[Text to diagram](https://excalidraw.heycactus.ai/u2wmm4-text-to-diagram) covers what the two AI commands do.
