Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Mermaid Preview and SaveNew to Visual Studio Code? Get it now.
Mermaid Preview and Save

Mermaid Preview and Save

haizy

|
5 installs
| (0) | Free
Mermaid Preview and Save
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Mermaid Preview and Save

A simple, fast, and local VS Code extension to preview your Mermaid diagrams and save them as high-quality SVG or JPG files directly from the editor.

Features

  • Live Preview: Instantly preview .mmd or .mermaid files with real-time rendering.
  • Pan & Zoom: Support for zooming (scroll) and panning (drag) large diagrams.
  • Save to SVG / JPG: Click the floating Save SVG or Save JPG button in the preview window to export your diagrams. The JPG export uses high-resolution (3x) rendering to ensure crisp images.
  • Error Feedback: Catch and display Mermaid syntax errors clearly within the preview window.

Usage

  1. Open a file with the .mmd or .mermaid extension (or change the Language Mode to mermaid).
  2. Right-click inside the editor or use the Preview (magnifying glass) icon in the top right corner to open the preview.
  3. Edit your Mermaid code and watch the diagram update automatically.
  4. Click Save SVG or Save JPG inside the preview window (bottom left) to save the rendered output to your disk.

Acknowledgements & Copyright

This extension relies on the powerful open-source library Mermaid.js.

  • Mermaid is licensed under the MIT License.
  • This extension uses Mermaid.js for rendering diagrams. Mermaid.js is created by Knut Sveidqvist and contributors, and is used under the terms of the MIT License. All rights to Mermaid.js remain with its original authors.
  • This extension does not claim any ownership over Mermaid or its associated intellectual property.
  • For more information about Mermaid, visit https://mermaid.js.org/.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft