VSCode画时序图

作者: Darren_Zheng | 来源:发表于2017-12-28 16:49 被阅读710次

配置

  • 下载插件


  • 新建文件扩展名.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


Slow Coding

相关文章

网友评论

    本文标题:VSCode画时序图

    本文链接:https://www.haomeiwen.com/subject/tlyvgxtx.html