VS Code: Mermaid diagrams built into Markdown preview, notebooks, and chat

Visual Studio Code demonstrates how Mermaid diagrams can be rendered directly inside VS Code using the Mermaid Markdown Features extension.

Overview

Mermaid diagram rendering is available directly in:

How it works

  1. Create a Mermaid fenced code block in a Markdown file.
  2. VS Code automatically renders the diagram.

markdown mermaid sequenceDiagram participant A as User participant B as Service A->>B: Request B-→>A: Response

What this is useful for