id@{ icon: …, label: …, pos: …, h: … }. Leave the icon empty for an ordinary box.Ctrl/⌘ S save Shift save as
Ctrl/⌘ O open
Ctrl/⌘ Z undo Shift redo
? this sheet
Esc close a dialog or clear the selection
Tab / Shift Tab indent
Click a shape in the preview to jump to its line
Inside service x( icon suggestions appear: Enter or Tab accepts
Click a gutter number to go to that line
Shift click, or drag a box: select several
Ctrl/⌘ C copy X cut V paste (also into another diagram)
Ctrl/⌘ D duplicate right-click for a menu
Ctrl/⌘ A select all
Arrow keys nudge Shift bigger steps
Delete remove double-click rename
Hold Alt while dragging to skip Snap
Ctrl + mouse wheel: zoom
Esc leaves Full Preview
Add a line like diagram_metadata["Updated ##date## | Commit ##commit## | Source ##source##"] to a diagram. Mermaid never sees it: Studio draws it as a footer in the preview, SVG and PNG, filling each ##token## from the values below. Automatic ones: ##date## ##time## ##datetime## ##file## ##version## (saves so far); type a value to override. Any token you add works.