Mermaid Diagram Creation¶
Mermaid is a text-based diagramming language that lets you describe diagrams as simple text — no drawing tools needed. ABAP FS can generate and display Mermaid diagrams directly in VS Code via Copilot chat.
How to Create a Diagram¶
- Open Copilot Chat (
Ctrl+Alt+I). - Describe the diagram you want. Examples:
- "Create a flowchart showing the flow of method
PROCESS_DATA" - "Generate a class diagram for
ZCL_MY_CLASS" - "Show a sequence diagram for the BAPI call in
ZMY_PROGRAM"
- "Create a flowchart showing the flow of method
- The diagram renders in an interactive webview at 200% zoom.
Working with the Diagram Viewer¶
| Action | How |
|---|---|
| Zoom in / out | Use the zoom controls in the webview (20% increments) |
| Save diagram | Click the save button in the webview |
Supported Diagram Types¶
Flowchart · Sequence · Class · State · ER · User Journey · Gantt · Pie · Git Graph · Mind Map · Timeline · Sankey · XY Chart · Block · Packet
Themes¶
default · dark · forest · neutral
Specify a theme in your prompt: "Create a flowchart … using the dark theme"