简体   繁体   English

PlantUML和Graphviz插件设置PHPstorm

[英]PlantUML and Graphviz plugin setup PHPstorm

I have already setup PlantUML plugin in PhpStorm . 我已经在PhpStorm中设置了PlantUML插件。

and I have download Graphviz 2.36 and install in my machine. 并且我已经下载了Graphviz 2.36并安装在我的机器上。

I have searched how to setup Graphviz in order to use PlantUML to do a UseCase in PhpStorm , but I can't found any information 我已经搜索了如何设置Graphviz以便使用PlantUMLPhpStorm中进行UseCase ,但是我找不到任何信息

I missed setting the "Environment variable". 我错过了设置“环境变量”的方法。

http://plantuml.sourceforge.net/graphvizdot.html http://plantuml.sourceforge.net/graphvizdot.html

After setting it, restart your PHPstorm and it should be fine. 设置之后,重新启动PHPstorm,应该没问题。

It wasn't really clear to me how to install this thing, so here's some instructions with pictures. 我不清楚如何安装此东西,因此这里有一些图片说明。

First install the plugin: 首先安装插件:

在此处输入图片说明

Set the "Graphviz dot executable" : 设置“ Graphviz点可执行文件”

在此处输入图片说明

Optionally associate with .dot files: (可选)与.dot文件关联:

在此处输入图片说明

You have to wrap your code with @startuml and @enduml for it to do anything, so its not really a dot file, but good enough: 您必须使用@startuml@enduml包装代码才能执行任何操作,因此它实际上不是点文件,但足够好:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM