VsCode 使用PlantUML

主页:https://plantuml.com/zh/

vs code中安装PlantUML插件

ctrl+D是预览图

使用plantUML的使用报错:Dot Executable:C:\Program Files\Graphviz2.38 it should be an executa解决方案

1 安装graphviz-2.38

这个自己去官网下载 https://www.graphviz.org/download/

2 设置环境变量

1.设置系统环境变量GRAPHVIZ_DOT:
值为安装的路径C:\Program Files (x86)\Graphviz2.38\bin\dot.exe
在这里插入图片描述

2.修改系统环境变量PATH添加Graphviz的bin目录路径,如C:\Program Files (x86)\Graphviz2.38\bin

3.设置用户环境变量
GRAPHVIZ_INSTALL_DIR, 值为如C:\Program Files (x86)\Graphviz2.38
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Marccco/article/details/116759704