Using the VS Code extension
Installing the VS code extension
- Search for the Eraser extension on the VS Code marketplace
- "Install" the extension
What is the VS Code extension?
- This extension applies to `.eraserdiagram` files
- Preview Eraser diagrams while editing diagram code
- Create new
.eraserdiagramfiles
Creating a new Eraser diagram file
- Create an blank file with the
.eraserdiagramextension - Open the blank file
- Select among available diagram types
- Write diagram code (learn diagram-as-code syntax)
Viewing and editing an exiting Eraser diagram file
- Open an existing
.eraserdiagramfile. By default, the diagram preview will show. - Click on the "Edit" icon to open code editor.
- Edit diagram code (learn diagram-as-code syntax)
Diagram syntax
- The first line of the diagram code in the
.eraserdiagramfile determines diagram type, which are:cloud-architecture-diagramentity-relationship-diagramsequence-diagramflow-chart
- Learn the syntax for each diagram type
Updated over 1 year ago