Explore From Here
Start from the whole repository
Right-click a folder to see the projects in it and how they depend on each other. Click a project to see its code folder by folder, starting from its entry points. Click a file to see its classes.
- Projects you already have.
- npm, Angular, Nx, Go workspaces, .NET solutions, Maven, Cargo, Composer, Python and more, found by their marker files.
- Arrows you can trust.
- Every arrow is a dependency the project declares or an import in the code. Nothing is guessed.
Explore Classes From Here
One class at a time
A file's classes are drawn in full. The classes around them (supertypes, subtypes, what they use and what uses them) are dashed boxes. Click one to bring it in with its own neighbours.
- You always know where you are.
- The class you clicked and the one you came from are ringed, and boxes glide to their new places as the view grows.
- Back, Start over, Save view.
- The same controls at every level, from the repository down to a class.
Any language
Answered by the language extension you already use
TypeScript is analysed by the extension itself. Every other language is answered by your installed language extension, so the explorer works wherever VS Code understands the code.
Diagram colours
Light by default, or your theme's colours
Diagrams are light by default. Set vscode-mermaid-extension.diagramColors to editor and they follow your VS Code theme, dark or light, as you switch.
Diagram Viewer
Preview Mermaid as you type
Open any .mmd or .mermaid file and click View Diagram. The pan-and-zoom preview redraws as you edit, so your design stays next to your code.
Save view
Keep any view as a .mmd file
Every view is a Mermaid diagram. Save it next to your code and it renders here, in Markdown, and on GitHub.
Class Diagram Generator
A folder's classes in one diagram
Right-click a TypeScript folder and choose Generate Class Diagram for a .classes.mmd of everything in it. Or right-click one file for a focused diagram of it and every class it touches, anywhere in the project.