Use Mermaid sequence diagrams as an entry point for code navigation in VS Code.
No heavy parsers. Designed specifically to support code reading and understanding, not full static analysis.
This extension is best suited for:
- Reading unfamiliar or legacy codebases
- Understanding execution flow before diving into implementations
- Using diagrams as a guide for where to start reading code
It is not intended to perfectly resolve all runtime behavior or dynamic dispatch.
-
Jump to related function/method definitions from Mermaid sequence diagrams
- When exact resolution is ambiguous, this extension prioritizes fast navigation over perfect accuracy
-
Works inside Markdown,
.mmd, and code comments -
Zero-config, instant response
This project focuses on improving the first 30 minutes of code reading.
Instead of trying to fully understand a system automatically, it helps developers quickly answer:
- Where does this flow start?
- Which functions are worth reading first?
- How does execution move across files?
- Open your source file (e.g.,
Example.py) - Right-click → "Generate Sequence Diagram" (via multilangSequence)
- Open the generated
.mmdfile - Click the preview button in the top-right corner
- Click any function name in the diagram to jump to its definition!
sequenceDiagram
participant Example.py
participant SampleBody
Example.py->>SampleBody: make_body()
SampleBody->>SampleBody: initialize()
Click on make_body() or initialize() to navigate directly to the function definition.
These features are designed to help you decide what to read first, not just where to jump.
- Zoom & Pan: Use toolbar buttons to navigate large diagrams
- Color Coding: Functions called frequently (5+) appear in orange, very frequent (10+) in red — helping highlight hotspots worth reading first
- Instant Navigation: Click-to-jump with no lag
This extension intentionally avoids full AST or runtime analysis. Instead, it relies on lightweight text-based heuristics to keep navigation fast and responsive.
This extension is bundled with multilangSequence, which automatically generates Mermaid sequence diagrams from your code: My extension focuses solely on navigation diagram generation is delegated to multilangSequence
- Open your source code (Python, TypeScript, Java, or JavaScript)
- Right-click and select "Generate Sequence Diagram"
- A
.mmdfile is created with the sequence diagram - Use this extension to jump from diagram to code
- Right-click your function name in your code → "Generate Sequence Diagram" (via multilangSequence)
- A
.mmdfile opens in the editor - Click the "Show Mermaid Preview" button in the top-right corner
- The Mermaid sequence diagram is displayed in a webview panel
- Click any function name in the diagram to jump directly to its definition
That's it.
⚠️ Note: This extension treats sequence diagrams as a navigation index, not a source of truth. Diagrams may be abstract or outdated, and this tool is designed to assist exploration rather than guarantee correctness.
