Mac上用sublime画UML

需要:

  • java  
  • sublime  
  • graphviz  
  • sublime-plantuml插件
插件:
  1. 使用 Command-Shift-P 打开 Command Palette
  2. 输入 add repository 找到 Package Control:Add Repository
  3. 在下方出现的输入框中输入 https://github.com/jvantuyl/sublime_diagram_plugin.git 然后回车
  4. 等待添加完成后再次使用 Command-Shift-P 打开 Command Palette
  5. 输入 install package 找到 Package Control:Install Package
  6. 等待列表加载完毕,输入 diagram 找到 sublime_diagram_plugin 安装
  7. 重启 Sublime Text

Install graphviz on Mac OSX

About the App

  • App name: graphviz
  • App description: Graph visualization software from AT&T and Bell Labs
  • App website: http://graphviz.org/

Install the App

  1. Press Command+Space and type Terminal and press enter/return key.
  2. Run in Terminal app:
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
    and press enter/return key. Wait for the command to finish.
  3. Run:
    brew install graphviz

Done! You can now use graphviz.



遇到问题:

  • 打开sublime 提示 Unable to load diagram plugin, check console for details。控制台具体提示Exception: No working processors found!
    • google后   https://github.com/jvantuyl/sublime_diagram_plugin/issues/12 这个人遇到同样问题。他重安graphviz修复。跟帖的一个人和我一样重安还是不行。执行 brew link --overwrite graphviz 解决。
使用:具体使用自行搜索plantuml,command+m 生成图。

你可能感兴趣的:(UML)