「VisualStudioCode/PlantUML」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→PlantUMLのプラグイン) |
(→PlantUMLのプラグイン) |
||
| 行4: | 行4: | ||
*codeエディタでクラス図を記述 | *codeエディタでクラス図を記述 | ||
*code上プレビューするoption+d | *code上プレビューするoption+d | ||
| + | |||
| + | クラス図 | ||
| + | <pre> | ||
| + | @startuml | ||
| + | class Enemy { | ||
| + | + string type | ||
| + | ~ string name | ||
| + | # void SayHello() | ||
| + | - void Attack() | ||
| + | } | ||
| + | @enduml | ||
| + | </pre> | ||
参考:https://gist.github.com/yoggy/bd68b3f1f55dbd742bea71424ca66564 | 参考:https://gist.github.com/yoggy/bd68b3f1f55dbd742bea71424ca66564 | ||
2022年1月14日 (金) 16:00時点における版
PlantUMLのプラグイン
- DL(https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml)
- Installボタンを押す
- codeエディタでクラス図を記述
- code上プレビューするoption+d
クラス図
@startuml
class Enemy {
+ string type
~ string name
# void SayHello()
- void Attack()
}
@enduml
参考:https://gist.github.com/yoggy/bd68b3f1f55dbd742bea71424ca66564
