Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Advanced MermaidNew to Visual Studio Code? Get it now.
Advanced Mermaid

Advanced Mermaid

Akshay D. Muley

|
1 install
| (0) | Free
Compare rendered Mermaid diagrams instead of code — side-by-side visual diff against any git ref.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Advanced Mermaid

Compare rendered Mermaid diagrams instead of code.

Git diffs of .mmd files show text changes, but a one-line edit can completely rearrange a rendered diagram. This VS Code extension shows you the visual difference: the old and new versions rendered side by side, with synced pan and zoom.

Two versions of a deploy pipeline diagram side by side, the right one with extra steps

Features

  • Compare Diagram with HEAD — one click in the editor title bar (for .mmd / .mermaid files) to see the working-tree version next to the last committed version.
  • Compare Diagram with Ref... — compare against any branch, tag, or commit.
  • SCM view integration — right-click a changed file in the Source Control panel.
  • Diagrams open fitted to their panes. Zoom with the wheel, the buttons, or +/-/0.
  • Pan & zoom stay synced across both panes — or unlock them to inspect each side on its own.
  • Live — the working-tree pane follows your edits as you type.
  • Follows your VS Code light/dark theme.
  • Mermaid is bundled — works fully offline.

Usage

  1. Open a .mmd or .mermaid file inside a git repository.
  2. Click the compare icon in the editor title bar, or run Mermaid Compare: Compare Diagram with HEAD from the command palette.

Editing live

The working-tree pane follows your edits. Mermaid spends most of an edit in an invalid state, so a source that doesn't parse keeps the last good diagram on screen and raises a badge in the pane header instead of blanking the pane.

A mid-edit diagram holding its previous render with an error badge in the pane header

Inspecting one side

Both panes pan and zoom together by default. Turn Sync off to frame each side on its own.

The two panes zoomed and positioned independently

Roadmap

  • [ ] Visual overlay modes (onion-skin, swipe, blink) like image diff tools
  • [ ] Semantic diff — parse both versions, diff the graph structure, and render one merged diagram with added/removed/changed elements highlighted. Stable layout, so the change jumps out.
  • [ ] Support Mermaid code blocks inside Markdown files
  • [ ] Compare two arbitrary files or two refs
  • [ ] Export comparison as image

See PLAN.md for the full milestone-by-milestone plan.

Contributions toward any of these are very welcome — see CONTRIBUTING.md.

Development

npm install
npm run watch     # rebuild on change

Press F5 in VS Code to launch an Extension Development Host.

Other scripts: npm run typecheck, npm test (unit), npm run test:integration (in a real VS Code), npm run verify:view (webview in Chromium), npm run build (production bundle).

To package a .vsix: npx @vscode/vsce package. Release process: RELEASING.md.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft