Skip to content
Lower pricing Individual licenses are now $49/year for Studio, $25 for Core — See pricing →

References & Refactoring

Last updated:

Mermaid Studio provides references for named elements in supported diagrams along with refactoring support to help you safely rename nodes and navigate your diagrams.

To rename a node and automatically update all its references:

  1. Place your cursor on the node name
  2. Use one of these methods:
    • Press Shift + F6 Shift + F6
    • Right-click and select Refactor -> Rename
  3. Type the new name
  4. Press Return Enter to apply

reference-rename

All references to that node throughout the diagram are updated automatically.

To see everywhere a node is referenced:

  1. Place your cursor on a node
  2. Press Option + F7 Alt + F7
  3. Or right-click and select Find Usages

The results appear in a tool window showing all locations where the node is used.

references-find

Command + click Control + click on any node reference to navigate directly to where the node is defined.

Refactoring is available in the diagram types below; the list is generated from the plugin’s feature report, so it tracks each release. Which identifiers are renameable follows each grammar: node and subgraph ids in flowcharts, participants in sequence diagrams, class members and type references in class diagrams, branch names in GitGraph, CSS class names wherever a grammar has them, and so on.