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
.eraserdiagram
files
Creating a new Eraser diagram file
- 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)
Viewing and editing an exiting Eraser diagram file
- 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)
Diagram 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
Updated 10 months ago