Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>CodagramsNew to Visual Studio Code? Get it now.
Codagrams

Codagrams

JadeMind

|
3 installs
| (0) | Free
Inline Mermaid renderer for your Code Editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codagrams

Codagrams renders Mermaid code blocks directly inside your editor, so diagrams stay next to the text you write.

Why Codagrams

  • Works in your normal writing flow without switching to a separate preview.
  • Automatically renders Mermaid blocks when you open, switch to, or save a file.
  • Reuses cached diagrams for fast updates.
  • Shows a clear inline hint if a Mermaid block cannot be rendered.

Mermaid Example

Input in your file

```mermaid
graph TD
  A[Open file] --> B[Scan Mermaid block]
  B --> C[Render or load from cache]
  C --> D[Show diagram inline]
```

Rendered result (example)

Rendered Mermaid Diagram

Quick Start

  1. Install Codagrams.
  2. Open any text-based file (for example JavaScript, Python or Markdown).
  3. Add a Mermaid fenced block.
  4. Save the file.
  5. The diagram appears inline below the block.

Display Options

  • codagrams.showDiagrams: Show or hide inline diagrams.

  • codagrams.renderFormat: Select svg or png rendering.

  • codagrams.imageWidth: Configure inline diagram width in pixels.

  • codagrams.debugLogs: Enable detailed diagnostic logs (off by default).

  • Quick toggle in status bar: click Codagrams (eye / eye-closed) to show or hide all inline diagrams.

  • Hover any rendered diagram and click Open rendered diagram in split pane to open it in a separate tab with image controls (zoom, etc.).

  • Codagrams: Toggle Diagrams

  • Codagrams: Show Diagrams

  • Codagrams: Hide Diagrams

Notes for Users

  • Rendering happens locally on your machine.
  • If a Mermaid block is invalid, Codagrams shows an inline warning with a link to Mermaid syntax docs.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft