Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Mermaid Export & PreviewNew to Visual Studio Code? Get it now.
Mermaid Export & Preview

Mermaid Export & Preview

quiet-tools

| (0) | Free
Preview & export .mmd files to SVG/PNG. Works offline and in Restricted Mode. No login. No telemetry. No Chromium download.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Mermaid Export & Preview

Preview and export .mmd files inside VS Code.

No login. No telemetry. No Chromium download. The diagram is rendered by the bundled mermaid library inside the webview, and the export runs in the same place — nothing is uploaded, and no browser is downloaded on first use.

Not affiliated with Mermaid Chart.

What it does

  • Open Preview for .mmd / .mermaid files, updating as you type
  • Export as SVG — the same vector output the preview shows
  • Export as PNG — rasterized locally, resolution multiplier is configurable
  • Exports look right on a white page — export uses its own light theme, even when your editor is dark
  • Works in Restricted Mode (untrusted workspaces) and in virtual workspaces

Settings

Setting Default Meaning
mermaidExportPreview.theme auto Preview theme. auto follows your VS Code color theme.
mermaidExportPreview.exportTheme default Theme for SVG/PNG export. Light by default so exported diagrams look right in documents, even if you use a dark editor theme. preview matches the preview.
mermaidExportPreview.pngScale 2 Resolution multiplier for PNG export.
mermaidExportPreview.pngBackground white white or transparent background for PNG.

Why another one

The export extension people usually reach for shells out to a headless Chromium, which fails on machines where that download is blocked. This one has no such dependency: if the preview renders, the export works, because they run the same code.

Privacy

This extension collects nothing and makes no network requests. There is no account, no sign-in, and no analytics.

Building from source

media/mermaid.min.js is copied from the mermaid npm package and is not checked into the repository. To rebuild:

npm install
cp ../poc/node_modules/mermaid/dist/mermaid.min.js media/
npm run compile
npx vsce package --allow-missing-repository

License

MIT. Bundled mermaid is MIT (Knut Sveidqvist and contributors).

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft