Skip to content
DiagravoDocsOpen editor

Docs Keyboard shortcuts

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#

Anywhere in the editor
KeysWhat it does
Ctrl+SSave: 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+KOpen 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.

On the canvas
KeysWhat it does
Ctrl+ZUndo.
Ctrl+Shift+Z or Ctrl+YRedo.
Ctrl+CCopy the selected components (to the system clipboard, so you can paste into another diagram or tab).
Ctrl+XCut the selection.
Ctrl+VPaste. Repeated pastes cascade so copies do not stack exactly on top of each other.
Ctrl+DDuplicate the selection in place.
Ctrl+GGroup the selected components (two or more).
Delete or BackspaceDelete the selected components or connection.
Shift + dragDraw a selection box.
Ctrl + clickAdd to, or remove from, the selection.
Double-clickZoom to a component, or to both ends of a connection.

Diagram name#

Diagram name
KeysWhat it does
EnterFinish renaming and save.

In the terminal prompt#

Typing here never triggers canvas shortcuts.

In the terminal prompt
KeysWhat it does
EnterRun the script.
Shift+EnterAdd a new line (write a multi-line script).
TabComplete the word under the cursor; press again to cycle through the options.
↑ / ↓Recall earlier scripts.
EscClear the prompt; press again to leave it.
Ctrl+LClear the terminal log.

In the Script (JSON) panel#

With Code Assist on (View → Code Assist).

In the Script (JSON) panel
KeysWhat it does
Ctrl+SpaceShow suggestions.
TabFill in a snippet.

In these docs#

In these docs
KeysWhat it does
Ctrl+KSearch the documentation.

Last updated . Something unclear or out of date? Tell us.