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
| |