Skip to content
Limited Time 40% off for early adopters — Get discount →

Formatting

Last updated:

Mermaid Studio can automatically format your diagram code to improve readability and maintain consistent style.

Reformatting often fixes minor syntax issues caused by improper spacing as well.

You can customize the formatting behavior through the Code Style settings menu. All diagram code style settings mermaid-specific settings are under Editor > Code Style > Mermaid.

Code Style Settings

The following diagram types have formatting support so far:

  • Architecture
  • Block
  • C4
  • Class Diagram
  • ER Diagram
  • Flowchart
  • Gantt
  • GitGraph
  • Mindmap
  • Requirement
  • Sequence
  • Timeline
  • Treemap