Keyboard shortcuts
Every shortcut in one place. On a Mac, use Cmd wherever you see Ctrl.
Shortcuts work whenever the editor has focus. Those that act on the canvas are switched off while you are typing in a text field, so pressing Ctrl+Z in the JSON panel undoes your typing rather than the diagram.
Anywhere in the editor#
| Keys | What it does |
|---|---|
| Ctrl+S | Save: on this device, and to the cloud when you are signed in. Works even while typing in the name field or the JSON panel; the browser’s own “Save page” never opens. |
| Ctrl+K | Open the command palette: search for an action (Play, Export, Templates…) and run it. |
| Ctrl+` | Open the terminal and put the cursor in its prompt, even from inside a text field. |
On the canvas#
These step aside while you are typing in a text field, so they never interfere with editing text.
| Keys | What it does |
|---|---|
| Ctrl+Z | Undo. |
| Ctrl+Shift+Z or Ctrl+Y | Redo. |
| Ctrl+C | Copy the selected components (to the system clipboard, so you can paste into another diagram or tab). |
| Ctrl+X | Cut the selection. |
| Ctrl+V | Paste. Repeated pastes cascade so copies do not stack exactly on top of each other. |
| Ctrl+D | Duplicate the selection in place. |
| Ctrl+G | Group the selected components (two or more). |
| Delete or Backspace | Delete the selected components or connection. |
| Shift + drag | Draw a selection box. |
| Ctrl + click | Add to, or remove from, the selection. |
| Double-click | Zoom to a component, or to both ends of a connection. |
Diagram name#
| Keys | What it does |
|---|---|
| Enter | Finish renaming and save. |
In the terminal prompt#
Typing here never triggers canvas shortcuts.
| Keys | What it does |
|---|---|
| Enter | Run the script. |
| Shift+Enter | Add a new line (write a multi-line script). |
| Tab | Complete the word under the cursor; press again to cycle through the options. |
| ↑ / ↓ | Recall earlier scripts. |
| Esc | Clear the prompt; press again to leave it. |
| Ctrl+L | Clear the terminal log. |
In the Script (JSON) panel#
With Code Assist on (View → Code Assist).
| Keys | What it does |
|---|---|
| Ctrl+Space | Show suggestions. |
| Tab | Fill in a snippet. |
In these docs#
| Keys | What it does |
|---|---|
| Ctrl+K | Search the documentation. |
Last updated . Something unclear or out of date? Tell us.