Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>mermaid-to-codeNew to Visual Studio Code? Get it now.
mermaid-to-code

mermaid-to-code

os3albert

|
2 installs
| (0) | Free
transform uml created with mermaid into a boilerplate ready code to be implemented
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

mermaid-to-code README

This extension "mermaid-to-code" is used to create code through the use of UML notation using mermaid.js

Features

write a markdown file with this the marmaid structure like this for example:

```mermaid
classDiagram
    note "From Duck till Zebra"
    Animal <|-- Duck
    note for Duck "can fly<br>can swim<br>can dive<br>can help in debugging"
    Animal <|-- Fish
    Animal <|-- Zebra
    Animal : +int Age
    Animal : +String Gender
    Animal: +isMammal()
    Animal: +mate()
    class Duck{
        +String beakColor
        +swim()
        +quack()
    } 
    class Fish{
        -int sizeInFeet
        -canEat()
    }
    class Zebra{
        +bool is_wild
        +run()
    }
''' <--- those should be backtick

than hit ctrl-shift-P to generate the C# code on your home folder select: Mermaid-Code: Generate Classes from Mermaid Diagram

Known Issues

note that those issues we are going to solve to make this extensions more practicle

  • all generated files stay on home folder at the moment
  • package default name should be the folder project name as usual

Release Notes

1.0.0

Initial release of mermaid-to-code


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft