Diagrams Panel
What is the Diagrams Panel?
The Diagrams Panel provides centralized management of Draw.io and Excalidraw diagrams with quick creation, organization, and embedding capabilities. Create diagrams directly from VS Code and embed them seamlessly in your notes.
Overview
The Diagrams Panel allows you to:
- Quick Creation: Create Draw.io or Excalidraw diagrams with one click
- Centralized Storage: All diagrams organized in
Diagramsfolder - Auto-Embed: Embed syntax automatically copied to clipboard
- Visual Organization: Diagrams grouped by type (Draw.io / Excalidraw)
- Metadata Display: See file size, modification date, and usage stats
Accessing the Panel
The Diagrams Panel appears in the sidebar as “DIAGRAMS” section, showing all your diagram files organized by type.
Panel Sections
Draw.io Diagrams
Shows all .drawio files:
1
2
3
4
5
6
7
📐 Draw.io (3)
└── architecture.drawio
Modified: 2 days ago | 45 KB
└── database-schema.drawio
Modified: 1 week ago | 32 KB
└── system-flow.drawio
Modified: 3 days ago | 28 KB
Excalidraw Diagrams
Shows all .excalidraw files and exported formats:
1
2
3
4
5
6
7
8
9
🎨 Excalidraw (4)
└── wireframe.excalidraw
Modified: Today | 12 KB
└── ui-mockup.excalidraw
Modified: Yesterday | 18 KB
└── concept.excalidraw.svg
Modified: 3 days ago | 8 KB
└── flowchart.excalidraw.png
Modified: 1 week ago | 125 KB
Quick Creation Workflow
Creating a Draw.io Diagram
- Click the + icon in the Diagrams panel toolbar
- Select “Create Draw.io Diagram”
- Enter diagram name (e.g., “architecture”)
- Diagram created at
Diagrams/architecture.drawio - Embed syntax copied to clipboard:
![[architecture.drawio]] - Paste in note and click to edit in Draw.io editor
Creating an Excalidraw Diagram
- Click the + icon in the Diagrams panel toolbar
- Select “Create Excalidraw Diagram”
- Enter diagram name (e.g., “wireframe”)
- Diagram created at
Diagrams/wireframe.excalidraw - Embed syntax copied to clipboard:
![[wireframe.excalidraw]] - Paste in note and click to edit in Excalidraw editor
Commands
Create Draw.io Diagram
Command: Noted: Create Draw.io Diagram
Creates a new Draw.io diagram file with empty canvas, stores it in the Diagrams folder, and copies the embed syntax to clipboard.
Result: Diagrams/diagram-name.drawio created with embed syntax ![[diagram-name.drawio]] copied
Create Excalidraw Diagram
Command: Noted: Create Excalidraw Diagram
Creates a new Excalidraw diagram file with empty canvas, stores it in the Diagrams folder, and copies the embed syntax to clipboard.
Result: Diagrams/diagram-name.excalidraw created with embed syntax ![[diagram-name.excalidraw]] copied
Insert Diagram
Command: Noted: Insert Diagram
Opens a quick picker showing all available diagrams. Select one to insert its embed syntax at cursor position.
Features:
- Searchable list of all diagrams
- Shows diagram type icon (Draw.io or Excalidraw)
- Displays file metadata
- Inserts
![[diagram-name]]at cursor
Open Diagram
Command: Noted: Open Diagram
Click any diagram in the panel to open it in the appropriate editor:
.drawiofiles open in Draw.io Integration extension.excalidrawfiles open in Excalidraw extension
Refresh Diagrams
Command: Noted: Refresh Diagrams
Manually refresh the diagrams panel to detect new or changed diagram files.
Diagram Types and Rendering
Raw Diagram Files
Draw.io (.drawio):
- Opens in Draw.io Integration editor
- Embeds show as clickable link in custom preview
- Shows “Export as .svg or .png to embed in preview” message
- Click to open in editor
Excalidraw (.excalidraw):
- Opens in Excalidraw editor
- Embeds show as clickable link in custom preview
- Shows “Export as .svg or .png to embed in preview” message
- Click to open in editor
Exported Diagram Files
SVG (.excalidraw.svg, .drawio.svg):
- Renders inline as vector image in custom preview
- Scalable without quality loss
- Perfect for documentation
PNG (.excalidraw.png, .drawio.png):
- Renders inline as raster image in custom preview
- Good for sharing and presentations
Automatic Diagram Discovery
v1.31.7+: Noted automatically searches for diagrams in a sibling Diagrams/ folder, even if it’s not in your VS Code workspace!
How It Works
When you embed a diagram like ![[my-diagram.drawio]], Noted searches:
- Relative to current note - Same folder as your note
- Sibling Diagrams folder - If your note is in
Notes/, it checksDiagrams/✨ NEW - Workspace folders - All folders in your VS Code workspace
- Recursive search - Deep search through workspace
Example Setup
1
2
3
4
5
6
7
8
9
WorkNotes/
├── Notes/
│ └── 2025/
│ └── 10-October/
│ └── 2025-10-27.md
└── Diagrams/
├── architecture.drawio
├── flowchart.excalidraw
└── wireframe.excalidraw.svg
In 2025-10-27.md, you can simply write:
1
2
3
![[architecture.drawio]]
![[flowchart.excalidraw]]
![[wireframe.excalidraw.svg]]
Noted automatically finds diagrams in ../../../Diagrams/ without needing to add WorkNotes/ to your workspace!
Custom Preview Command
Command: Noted: Open Preview (with Diagram Support)
Opens a custom markdown preview panel with full diagram embed support:
- ✅ Renders exported diagrams (.svg, .png) inline
- ✅ Shows clickable links for raw diagrams (.drawio, .excalidraw)
- ✅ Proper permissions for sibling Diagrams folder access
- ✅ Live updates as you edit
Why use custom preview? VS Code’s built-in markdown preview doesn’t support markdown-it plugins for diagram embeds. The custom preview solves this by:
- Processing embeds before markdown rendering
- Setting proper webview resource permissions
- Supporting files outside workspace folders
Configuration
Diagrams Folder Location
Setting: noted.diagramsFolder
Default: "Diagrams"
Description: Folder name where diagram files are stored. Can be just a folder name or a full path.
Example:
1
2
3
{
"noted.diagramsFolder": "Diagrams" // Sibling folder (recommended)
}
Change to organize diagrams differently:
1
2
3
{
"noted.diagramsFolder": "assets/diagrams" // Subfolder
}
Or use a full path:
1
2
3
{
"noted.diagramsFolder": "/Users/yourname/Documents/Diagrams" // Absolute path
}
Requirements
Draw.io Integration
Extension: Draw.io Integration
Install:
- Open Extensions (
Cmd+Shift+X) - Search for “Draw.io Integration”
- Click Install
Excalidraw
Extension: Excalidraw
Install:
- Open Extensions (
Cmd+Shift+X) - Search for “Excalidraw”
- Click Install
Use Cases
Architecture Documentation
Create system architecture diagrams with Draw.io:
1
2
3
4
5
6
7
8
9
10
11
# System Architecture
Our microservices architecture:
![[architecture.drawio]]
## Database Design
Entity relationships:
![[database-schema.drawio]]
UI/UX Design
Create wireframes and mockups with Excalidraw:
1
2
3
4
5
6
7
8
9
# Feature: User Dashboard
## Wireframes
Initial concept:
![[dashboard-wireframe.excalidraw]]
Refined design:
![[dashboard-v2.excalidraw.svg|Dashboard Mockup]]
Process Flows
Document workflows and processes:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Deployment Process
## CI/CD Pipeline
![[cicd-flow.drawio]]
## Release Workflow
1. Code review
2. Testing (see [[test-strategy]])
3. Staging deployment
4. Production release
![[release-process.drawio]]
Technical Diagrams
Create technical diagrams for documentation:
1
2
3
4
5
6
7
8
9
10
11
12
13
# API Design
## Request Flow
![[api-flow.excalidraw]]
## Authentication Sequence
![[auth-sequence.drawio]]
## Data Model
![[data-model.drawio.svg|Database Schema]]
Tips and Best Practices
Naming Conventions
Use descriptive, consistent names:
Good:
user-authentication-flow.drawiodatabase-schema-v2.drawiodashboard-wireframe.excalidraw
Avoid:
diagram1.drawiountitled.excalidrawtest.drawio
Organization Strategies
By Feature:
1
2
3
4
5
Diagrams/
├── auth-flow.drawio
├── auth-sequence.drawio
├── user-dashboard.excalidraw
└── user-profile.excalidraw
By Type:
1
2
3
4
5
6
7
8
9
10
Diagrams/
├── architecture/
│ ├── system-overview.drawio
│ └── microservices.drawio
├── wireframes/
│ ├── dashboard.excalidraw
│ └── settings.excalidraw
└── flows/
├── signup.drawio
└── checkout.drawio
Version Control
Include version numbers in diagram names:
1
2
3
4
5
6
7
8
9
10
# Feature Evolution
Initial design:
![[feature-v1.excalidraw]]
Current design:
![[feature-v2.excalidraw]]
Future concept:
![[feature-v3.excalidraw]]
Export for Presentations
Export diagrams to SVG or PNG for:
- Documentation that needs to be self-contained
- Presentations and slide decks
- Sharing with non-VS Code users
- Version control (track visual changes)
Workflow:
- Create and edit diagram:
architecture.drawio - Export to SVG:
architecture.drawio.svg - Embed exported version:
![[architecture.drawio.svg]] - Update source when needed
Linking Diagrams and Notes
Connect diagrams to relevant notes:
1
2
3
4
5
6
7
8
# Database Migration
See architecture diagram: ![[database-schema.drawio]]
Related notes:
- [[migration-plan]]
- [[data-model-changes]]
- [[rollback-strategy]]
Troubleshooting
Diagram Not Showing in Panel
Problem: Created diagram doesn’t appear in panel
Solutions:
- Click Refresh button in panel toolbar
- Ensure file is in
Diagramsfolder - Check file extension (
.drawioor.excalidraw) - Restart VS Code if needed
Cannot Edit Diagram
Problem: Clicking diagram doesn’t open editor
Solutions:
- Draw.io files: Install Draw.io Integration
- Excalidraw files: Install Excalidraw
- Right-click diagram → “Open With…” → Select editor
- Verify extensions are enabled
Embed Not Working in Custom Preview
Problem: Diagram embed shows broken image or link
Solutions:
- Verify diagram file exists in
Diagramsfolder (sibling toNotes/) - Check file path is correct (case-sensitive)
- Ensure embed syntax is correct:
![[diagram-name.ext]] - Use
Noted: Open Preview (with Diagram Support)command (not built-in preview) - For exported diagrams (.svg, .png), verify the export was successful
- Check console output for path resolution logs
- If using custom folder structure, verify
noted.diagramsFoldersetting
Path Resolution Order:
- Same folder as note
- Sibling Diagrams folder (automatic)
- Workspace folders
- Recursive workspace search
Embed Works in Hover but Not Preview
Problem: Hover preview shows diagram but custom preview doesn’t
Solution: This is expected behavior for raw diagrams (.drawio, .excalidraw):
- Raw diagrams show as clickable links in preview (cannot render natively)
- Export diagrams to .svg or .png to see them rendered inline
- Hover previews work differently than custom preview rendering
Diagrams Folder Not Created
Problem: Diagrams folder doesn’t exist
Solution: Create first diagram - folder will be created automatically
Or manually create:
1
mkdir -p Notes/Diagrams
Related Features
- Embeds: Learn about embedding diagrams in notes
- Wiki Links: Link diagrams to related notes
- Templates: Create note templates with diagram placeholders
- Graph View: Visualize relationships between notes and diagrams
Keyboard Shortcuts
No default keyboard shortcuts are assigned. You can customize shortcuts in VS Code:
- Open Keyboard Shortcuts (
Cmd+K Cmd+S) - Search for “Noted: Create”
- Assign shortcuts for diagram commands
Suggested shortcuts:
- Create Draw.io:
Cmd+K D(Mac) /Ctrl+K D(Win/Linux) - Create Excalidraw:
Cmd+K E(Mac) /Ctrl+K E(Win/Linux) - Insert Diagram:
Cmd+K I(Mac) /Ctrl+K I(Win/Linux)
Next Steps
- Install Extensions: Get Draw.io Integration and/or Excalidraw
- Create First Diagram: Click + in Diagrams panel
- Embed in Note: Paste copied syntax into any note
- Organize: Develop naming conventions and folder structure
- Explore: Try both diagram types to find what works best
Start visualizing your ideas with the Diagrams Panel! 🎨