Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Markdown Graph StudioNew to Visual Studio Code? Get it now.
Markdown Graph Studio

Markdown Graph Studio

TinhCao

|
6 installs
| (0) | Free
Edit semantic Markdown graphs entirely inside VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Graph Studio

Visual node-graph editor and interactive diagram workspace for Markdown documents, directly inside VS Code.

VS Code Marketplace Version Open VSX Version Support on Ko-fi License: MIT Build Status

Markdown Graph Studio Workspace Preview


Interactive Walkthrough Demo

Markdown Graph Studio Demo


Overview

Markdown Graph Studio turns standard Markdown files into visual, interactive node-and-edge diagrams while keeping plain Markdown as the strict, single source of truth.

  • Zero Vendor Lock-in: Nodes are level-2 headings (##), connections are standard wikilinks ([[target]]), and content uses standard GitHub Flavored Markdown (GFM).
  • Clean Markdown (Sidecar Storage): Layout coordinates, zoom levels, and viewport settings can be stored in an external .md.graph.json sidecar file, keeping your Markdown text completely free of diagram noise.
  • Native VS Code Integration: Runs as a Custom Editor with dedicated Activity Bar views (Canvases and Node search outline), side-by-side editing, and instant two-way synchronization.
  • Self-Contained & Private: Operates entirely within your local workspace. No external servers, no cloud telemetry, and no browser dependencies.

Markdown Syntax & Data Model

Every second-level heading (##) defines a graph node. Wiki-style bullet items define directional connections.

## Authentication Service {#auth-service}
<!-- graph-node: shape=rounded-rectangle; color=blue; icon=shield -->
Handles JWT token validation and OAuth2 session tokens.

- [[database-service|Read/Write Session]] <!-- graph-edge: arrow=forward; line=solid; path=orthogonal -->
- [[audit-log|Security Events]] <!-- graph-edge: arrow=forward; line=dashed; path=orthogonal -->

## Database Service {#database-service}
<!-- graph-node: shape=rectangle; color=green; icon=database -->
PostgreSQL cluster storing persistent tenant records.

## Audit Log {#audit-log}
<!-- graph-node: shape=rounded-rectangle; color=gray; icon=file-text -->
Append-only log for compliance tracking.

Supported Node & Edge Attributes

Attribute Scope Supported Values
shape Node rectangle, rounded-rectangle
color Node / Edge blue, green, yellow, red, purple, gray
icon Node 27 built-in icons (e.g. server, database, shield, book, terminal, zap, lock, cloud)
collapsed Node true, false
locked Node true, false
line Edge solid, dashed, dotted
arrow Edge forward, backward, both, none
from / to Edge top, right, bottom, left

[!TIP] Explicit heading IDs ({#node-id}) are recommended. They ensure connectors and saved layout coordinates remain stable even if you rename the node title.


Key Features

1. Interactive GFM Tables

  • Click directly into table cells to edit inline.
  • Navigate across cells in 4 directions using arrow keys (↑ ↓ ← →) or Tab / Shift+Tab.
  • Context menu support: Insert/delete rows and columns, set column text alignment (left, center, right), and span across columns.

2. Rich Content Blocks & Action Bar

  • Floating action bar for fast insertion: Images (workspace file or external URL), Links, Checklist Tasks, Code blocks, Tags, Quotes, and Tables.
  • Full markdown rendering on canvas: inline formatting (**bold**, *italic*, ~~strike~~, `code`), autolinks, blockquotes, and fenced code blocks.
  • Interactive task items: toggle checkbox directly on canvas with automatic Markdown state synchronization.

3. Smart Orthogonal Connector Routing

  • Automatic orthogonal edge routing with collision avoidance and border contact snapping.
  • Custom connection ports (top, right, bottom, left) for precise diagram architecture.
  • Draggable route bend handles and customizable line styles (solid, dashed, dotted), colors, and midpoint label pills.

4. Activity Bar & Search Explorer

  • Canvases View: Displays recently accessed Markdown graphs in the active workspace with one-click opening.
  • Node Outline View: Tree structure of all nodes in the active graph with a live search filter (Ctrl+F) to instantly center and select any node on canvas.

5. Flexible Storage Strategies

  • Sidecar Mode (sidecar) (Default): Stores visual coordinates and viewport state in a sibling .md.graph.json file. Your .md file contains only pure Markdown.
  • Embedded Mode (embedded): Appends an unobtrusive <!-- canvas-meta: ... --> comment at the end of your Markdown file.
  • Stateless Mode (stateless): Computes layout dynamically without writing metadata files to disk.

Configuration Settings

Configure extension behavior via VS Code Settings (Ctrl+, or Cmd+,):

Setting Type Default Description
markdownGraphStudio.storageMode string "sidecar" Layout metadata storage strategy: sidecar (.md.graph.json), embedded (in-file comment), or stateless.
markdownGraphStudio.sidecarNaming string "dot-md-graph-json" Sidecar file naming convention: foo.md.graph.json or foo.graph.json.

Command Palette Actions

All commands are accessible via Ctrl+Shift+P / Cmd+Shift+P:

Command Title Shortcut Description
markdownGraphStudio.openAsGraph Open as Graph Ctrl+Alt+G Opens selected/active Markdown file in visual graph studio. Available in Explorer context & Editor title.
markdownGraphStudio.openSideBySide Open Text and Graph Side by Side Ctrl+Alt+Shift+G Opens Markdown text and visual graph canvas side-by-side.
markdownGraphStudio.pickCanvas Open Canvas — Quick-pick selection of Markdown graphs in the workspace.
markdownGraphStudio.refreshCanvases Refresh Canvases — Refreshes the workspace graph list in the Activity Bar.
markdownGraphStudio.convertToSidecar Convert to Sidecar Storage — Migrates embedded metadata to external .md.graph.json.
markdownGraphStudio.embedMetadata Embed Metadata into Markdown — Inlines sidecar metadata into a <!-- canvas-meta --> comment.
markdownGraphStudio.searchNodes Search Nodes Ctrl+F Focuses the node search input in the Activity Bar.
markdownGraphStudio.clearNodeFilter Clear Filter — Clears the active node filter in the Activity Bar.
markdownGraphStudio.closeOutline Close Node Outline — Clears the outline view in the Activity Bar.

Keyboard Shortcuts & Canvas Controls

Canvas & Viewport

Action Shortcut / Gesture
Pan Canvas Middle Mouse Drag or Space + Left Click Drag
Zoom In / Out Mouse Wheel or Ctrl + + / -
Fit Graph to View F or Ctrl+0
Reset Zoom (100%) Ctrl+1
Deselect All Escape

Nodes & Selection

Action Shortcut / Gesture
Create New Node N or Insert
Select All Nodes Ctrl+A
Multi-select Shift + Left Click or Marquee Drag on Canvas
Move Selection Left Click Drag selected node(s)
Duplicate Node(s) Ctrl+D
Inline Edit Node Enter (or Double Click)
Delete Selection Delete or Backspace
Copy / Cut / Paste Ctrl+C / Ctrl+X / Ctrl+V (syncs Markdown with OS clipboard)
Undo / Redo Ctrl+Z / Ctrl+Y
Connect Nodes Drag from white border port to target node
Resize Node Drag bottom-right corner grip

Inline Editor & Table Navigation

Action Shortcut / Gesture
Navigate Cells / Tasks Arrow keys (↑ ↓ ← →) at boundary
Next / Previous Cell Tab / Shift+Tab
Save & Finish Edit Enter (use Ctrl+Enter in multiline code)
Discard Changes Escape
Shortcuts Modal ? or F1

Support the Project

If you find Markdown Graph Studio helpful, consider supporting its creator via Ko-fi:

Support on Ko-fi

Or donate directly at: ko-fi.com/toancao


Development & Testing

Prerequisites

  • Node.js (v20 or higher recommended)
  • VS Code (v1.95.0 or higher)

Build & Verification Commands

# Install dependencies
npm install

# Type check
npm run check

# Run automated tests
npm test

# Verify all checks (type check + tests + esbuild bundle)
npm run verify

# Package extension into .vsix file
npm run package

The package command produces dist/markdown-graph-studio.vsix. You can test it locally in VS Code via Extensions: Install from VSIX...

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