Keyboard Shortcuts
Last updated:
This page lists keyboard shortcuts and mouse interactions available in the Mermaid Studio diagram preview. Shortcuts follow standard JetBrains conventions and can be customized in Settings > Keymap (search for “Mermaid”).
Zoom and Pan
Section titled “Zoom and Pan”Plus Sign + Plus Sign + orEqual Sign = Equal Sign = zooms inMinus Sign - Minus Sign - zooms out0 0 0 0 resets the view (fit to viewport, capped at 100%)1 1 1 1 sets zoom to exactly 100%- Arrow keys pan the diagram by 50 pixels per press
Command Command Control Ctrl + scroll wheel performs focal zoom (toward cursor)- Scroll wheel zooms in and out
- Middle-click drag pans the diagram
Edit Mode
Section titled “Edit Mode”Edit mode features require a paid license (Core or Studio) and are currently available for Flowchart diagrams only.
Selection
Section titled “Selection”- Click an element to select it
- Shift+Click to add or remove an element from the selection
- Click+Drag on an empty area to marquee-select multiple elements
Command + A CommandA Control + A CtrlA selects all elementsAlt + Shift + P AltShiftP Alt + Shift + P AltShiftP selects the parent subgraphAlt + Shift + C AltShiftC Alt + Shift + C AltShiftC selects all children of the current subgraphAlt + Shift + S AltShiftS Alt + Shift + S AltShiftS selects all siblings at the same level
Editing
Section titled “Editing”- Double-click a label to edit it inline
Command + B CommandB Control + B CtrlB toggles bold on the selected element’s label (works with multi-selection)Command + I CommandI Control + I CtrlI toggles italic on the selected element’s label (works with multi-selection)Command + G CommandG Control + G CtrlG groups selected elements into a new subgraph- Delete removes the selected element or elements
Command + Z CommandZ Control + Z CtrlZ undoes the last edit mode operation
Navigation
Section titled “Navigation”In preview mode, clicking an element triggers built-in Mermaid.js interactivity (actor menus, external links, etc.).
Hold
In edit mode, a plain click navigates to the element’s source declaration.
Hold
Find in Preview
Section titled “Find in Preview”Command + F CommandF Control + F CtrlF opens the search bar in the diagram preview
Style Pane
Section titled “Style Pane”Control + Command + Up Arrow ControlCommandUp Control + Alt + Up Arrow CtrlAltUp navigates between a link and itslinkStyledeclaration (Go to Related)
See Also
Section titled “See Also”- Live Preview for zoom, pan, and toolbar details
- Edit Mode for the full interactive editing guide
- Style Pane for visual CSS styling controls