DrawIt Diagram Viewer for VS Code

View .drawit diagram files directly in Visual Studio Code and open them in the DrawIt web app for full editing.
Install from VS Code Marketplace →
Features
- Native Viewer — Opens
.drawit files in a custom editor with canvas rendering
- Interactive — Pan, zoom, and select elements directly in VS Code
- Open in App — One-click to open any diagram in the DrawIt web app for full AI-powered editing
- Export — Export diagrams as PNG, SVG, or
.drawit format from within VS Code
- File Explorer — Sidebar panel listing all
.drawit files in your workspace
- Multi-format — Supports both NDJSON and JSON
.drawit file formats
Usage
Opening Diagrams
Simply open any .drawit file in VS Code — the extension automatically renders it in the custom viewer.
Navigation
| Action |
How |
| Pan |
Click and drag the canvas |
| Zoom In / Out |
Mouse wheel, or Cmd+= / Cmd+- (Mac), Ctrl+= / Ctrl+- (Windows/Linux) |
| Zoom to Fit |
Cmd+0 / Ctrl+0, or toolbar button |
| Select element |
Click on any diagram element |
Editing in the DrawIt App
The VS Code extension is a read-only viewer. For full editing (AI generation, drag-and-drop, resizing):
- Click "Open in DrawIt App" in the editor toolbar
- Your browser opens drawit.chamuka.ai
- Import your
.drawit file via File > Import or drag-and-drop
- Edit with full AI-powered features
- Export and save back to your project
Commands
Access via the Command Palette (Cmd+Shift+P / Ctrl+Shift+P):
| Command |
Description |
DrawIt: Open in DrawIt App |
Open current diagram in web app for editing |
DrawIt: Export as PNG |
Export diagram as a PNG image |
DrawIt: Export as SVG |
Export diagram as an SVG file |
DrawIt: Export as DrawIt |
Save a copy in .drawit format |
DrawIt: Zoom In |
Zoom into the diagram |
DrawIt: Zoom Out |
Zoom out from the diagram |
DrawIt: Zoom to Fit |
Fit entire diagram in the viewport |
When a .drawit file is active, three buttons appear in the editor toolbar:
- Open in DrawIt App — external link icon
- Export as PNG — image icon
- Zoom to Fit — full-screen icon
The extension handles both .drawit formats automatically:
NDJSON format (generated by the CLI and Claude Code skill):
{"width":1920,"height":1080,"background":"#ffffff","metadata":{...}}
{"type":"node","id":"node-1","position":{"x":100,"y":100},...}
{"type":"edge","id":"edge-1","source":"node-1","target":"node-2",...}
JSON format (generated by the web app):
{
"width": 1920,
"height": 1080,
"elements": [
{"type":"node","id":"node-1",...},
{"type":"edge","id":"edge-1",...}
]
}
Requirements
Visual Studio Code 1.80.0 or higher.
Known Limitations
- Read-Only Viewer — Editing is done in the DrawIt web app, not directly in VS Code
- Large Diagrams — Very large diagrams (1000+ elements) may take a moment to load
- Icon Shapes — Icon elements render as labeled placeholders in the VS Code viewer
Roadmap
- [ ] Element property inspector
- [ ] Search and filter elements
- [ ] Minimap / overview panel
- [ ] Direct import/export sync with DrawIt web app
License
Proprietary — © 2026 Chamuka Inc. All rights reserved. Unauthorized copying, distribution, or modification is strictly prohibited. For licensing inquiries contact hello@chamuka.ai.