Skip to content

Preview

Access preview settings at Settings / Preferences > Tools > Mermaid Diagrams > Preview.

When enabled, the preview background is lightened by 10% if your editor theme has a very dark background. This improves diagram visibility on themes like Darcula or One Dark.

Choose where zoom and pan controls appear in the preview:

  • Top Left
  • Top Right
  • Bottom Left
  • Bottom Right (default)

Choose how controls are arranged:

  • Vertical - Buttons stacked vertically (default)
  • Horizontal - Buttons arranged side-by-side

Found under Settings > Tools > Mermaid Diagrams > Navigation.

Configure click-to-navigate behavior in the preview:

  • Enable navigation from preview - Click elements to jump to source
  • Modifier Key - Choose Ctrl, Cmd, Alt, or Shift for navigation clicks
  • Highlight on hover - Show visual feedback when hovering over navigable elements

Found under Settings > Tools > Mermaid Diagrams > Plugins.

Enable additional layout algorithms:

  • ELK - Advanced layouts for flowcharts (layout: elk)
  • tidy-tree - Optimized tree layouts for mindmaps (layout: tidy-tree)

Layout plugins increase memory usage. Only enable what you need.