Diagrams as code
A 3-mode preview for Graphviz DOT (.dot/.gv) and PlantUML (.puml) files via the dot / plantuml CLIs, with export to SVG / PNG / PDF.
Keep your architecture and UML diagrams as plain text in the repository, and see them drawn beside the source as you edit.
- Graphviz and PlantUML.
.dotand.gvfiles and.pumland.plantumlfiles get the Editor, Split and Preview views, drawn by thedotandplantumltools. - Quick to redraw. An unchanged diagram is not drawn again, and zoom resizes the image.
- Export a diagram to SVG, PNG or PDF with Diagram: Export (SVG/PNG/PDF), or print it.
- Safe to open. PlantUML runs sandboxed, so a diagram cannot pull in local files or URLs.
Nothing appears until the tools are found. Install them with your package manager, such as brew install graphviz plantuml; Settings → Diagrams shows whether each one is found.
On by default. Turn it off in Settings → Diagrams. See the Diagrams guide.