配置
-
下载插件
-
新建文件扩展名.seqdiag
-
设置展示风格sequencediagrams.diagram.style,可选手绘or正常
-
启动实时预览:cmd + shift + p 调出命令模式,执行Show Sequence Diagram Preview
语法
- 注释(不可预览,也不会对预览造成影响)
# comment
- 标题
Title: This is a title

- 同步调用
A->B: Hello

- 异步调用
A->>B�

- 回复消息
A-->B: Hello

- 注释
Note left of A: Left note
Note right of A: right note
Note over A: over note
Note over A,B: over both A and B

- 重新排序,提前声明顺序,会覆盖后续语法的顺序
participant B
participant A
A->B: Hello

链接
欢迎关注公众号SlowCoding

网友评论