For AI agents: visit https://docs.eraser.io/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
Using the VS Code extension
- Search for the Eraser extension on the VS Code marketplace
- "Install" the extension
- This extension applies to `.eraserdiagram` files
- Preview Eraser diagrams while editing diagram code
- Create new
.eraserdiagram files
- Create an blank file with the
.eraserdiagram extension
- Open the blank file
- Select among available diagram types
- Write diagram code (learn diagram-as-code syntax)
- Open an existing
.eraserdiagram file. By default, the diagram preview will show.
- Click on the "Edit" icon to open code editor.
- Edit diagram code (learn diagram-as-code syntax)
- The first line of the diagram code in the
.eraserdiagram file determines diagram type, which are:
cloud-architecture-diagram
entity-relationship-diagram
sequence-diagram
flow-chart
- Learn the syntax for each diagram type