Keyboard shortcuts

Every editor command with its default keys on Mac and on Windows and Linux, which you can change. In the editor, ? lists the shortcuts, and ⌘K / Ctrl+K runs any command by name, including the ones marked "Palette only". With view-only access, only the commands that don't change the diagram are available.

Edit#

CommandMacWindows and Linux
Undo⌘ZCtrl+Z
Redo⇧⌘Z⌃YCtrl+Shift+ZCtrl+Y
Delete selectionDel⌫DelBackspace
Copy⌘CCtrl+C
Paste⌘VCtrl+V
Insert shape//
Insert imagePalette onlyPalette only

Selection#

CommandMacWindows and Linux
Select all⌘ACtrl+A
Clear selectionEscEsc

View#

CommandMacWindows and Linux
Zoom in+=+=
Zoom out−−
Zoom to 100%Palette onlyPalette only
Fit to screenPalette onlyPalette only
Toggle shapes panelPalette onlyPalette only
Toggle code panelPalette onlyPalette only
Toggle history panelPalette onlyPalette only
Toggle pricing panelPalette onlyPalette only
Compare cost stagesPalette onlyPalette only
Toggle presentation mode⌘\⌘.Ctrl+\Ctrl+.

Pages#

CommandMacWindows and Linux
Edit cost stagesPalette onlyPalette only
Previous page[[
Next page]]
New pagePalette onlyPalette only
New page from MermaidPalette onlyPalette only
Sync page with GitPalette onlyPalette only
Duplicate pagePalette onlyPalette only

Diagram#

CommandMacWindows and Linux
Share diagramPalette onlyPalette only
Export page as JSONPalette onlyPalette only
Export as PNGPalette onlyPalette only
Export as JPGPalette onlyPalette only
Export as SVGPalette onlyPalette only

Help#

CommandMacWindows and Linux
Command palette⌘KCtrl+K
Keyboard shortcuts??

Mouse and modifier keys#

ActionWhat it does
Click with Shift, ⌘ or CtrlAdds the item to the selection, or removes it.
Drag on empty canvasSelects everything the box touches.
Right-dragPans the canvas.
Right-clickOpens the canvas menu.
Double-click on empty canvasAdds a text box there.
Ctrl after you start draggingMoves or resizes without snapping.
Wheel with ⌘ or Ctrl, or pinchZooms around the pointer.
Wheel with ShiftPans sideways.
Wheel or two-finger scrollZooms or pans, depending on the navigation mode.

Change shortcuts#

Keyboard shortcuts under Preferences lists every command with its current shortcuts. Changes are stored in this browser and reach editors that are already open in it. The shortcuts dialog, the command palette, the canvas menu and the status bar show your shortcuts, and this page shows the defaults.

ControlWhat it does
+Records a shortcut: press the keys, or Esc to cancel. A command can have up to 4.
× on a keyRemoves that shortcut. A command without any still runs from the command palette.
Reset buttonPuts back the command's default shortcuts.
Reset allPuts back every default.
RuleWhy
A shortcut belongs to one command.Pressing one that's taken names the command that has it.
⌥ Option and Alt can't be used.They type special characters on many keyboards.
Tab can't be a shortcut.It moves between controls.
Enter, Space and the arrow keys need ⌘, ⌃ or Ctrl.On their own they press buttons and move around the editor.
Copy and paste can't be changed.They always use your system's shortcuts.

The dashboard's search keeps ⌘K / Ctrl+K, whatever the editor's Command palette uses.