Mac 閰嶇疆 PlantUML
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac 閰嶇疆 PlantUML相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/%e5%bc%80%e5%8f%91' title='寮€鍙?>寮€鍙?/a> graphviz bre 缂栬緫 杩斿洖 缁樺埗 閾炬帴 title view
wikipedia锛?/p>
PlantUML 浣跨敤绠€鍗曠殑鍙鏂囨湰鎻忚堪璇彞鏉ョ粯鍒跺浘琛ㄣ€傞渶瑕佹敞鎰忕殑鏄紝瀹冨苟涓嶄細闃绘浣犵粯鍒剁浉浜掔煕鐩剧殑鍥捐〃锛堟瘮濡傦紝鏈変袱涓浉浜掔户鎵跨殑绫伙級锛屾墍浠ヤ笌鍏惰瀹冩槸涓€涓缓妯″伐鍏凤紝涓嶅璇村畠鏄竴涓粯鍥惧伐鍏枫€傦紙鏉ヨ嚜PlantUML瀹樼綉What鈥榮 the goal of PlantUML ?锛?/p>
涓€.鎵€闇€鐜
- JDK(Java SE Development Kit)
- graphviz
- Visual Studio Code(鎴栬€卻ublime, Chrome, eclipse, androidStudio, Intellij...鏇村)
浜?閰嶇疆
1.瀹夎JDK
- 妫€娴嬫槸鍚﹀凡瀹夎JDK
缁堢杈撳叆
java -version
PlantUML 浣跨敤绠€鍗曠殑鍙鏂囨湰鎻忚堪璇彞鏉ョ粯鍒跺浘琛ㄣ€傞渶瑕佹敞鎰忕殑鏄紝瀹冨苟涓嶄細闃绘浣犵粯鍒剁浉浜掔煕鐩剧殑鍥捐〃锛堟瘮濡傦紝鏈変袱涓浉浜掔户鎵跨殑绫伙級锛屾墍浠ヤ笌鍏惰瀹冩槸涓€涓缓妯″伐鍏凤紝涓嶅璇村畠鏄竴涓粯鍥惧伐鍏枫€傦紙鏉ヨ嚜PlantUML瀹樼綉What鈥榮 the goal of PlantUML ?锛?/p>
缁堢杈撳叆
java -version
娌℃湁瀹夎鐨勮瘽浼氬脊绐?/p>
鐐瑰嚮鏇村淇℃伅锛岃繘鍏?a href="https://www.oracle.com/technetwork/java/javase/downloads/index.html">JDK涓嬭浇椤?/a>
DOWNLOAD
杩涘叆涓嬭浇椤甸潰
鐐瑰嚮鎺ュ彈鏉℃锛屽啀鐐瑰嚮銆俤mg鐨勯摼鎺ヤ笅杞?br/>
鐢变簬鏌愪簺缂樻晠Oracle涓嬭浇JDK濂囨參锛屼綘鍙互浣跨敤鍗庝负JDK闀滃儚婧?/a>锛屾壘鍒版渶鏂扮殑鐗堟湰涓嬭浇鍗冲彲
鍏充簬JDK鐜鍙橀噺閰嶇疆鍙互鍙傜収
macOS涓婮DK11瀹夎鍙婄幆澧冨彉閲忛厤缃€荤粨瀹夎閰嶇疆瀹屾垚鍚庯紝缁堢璺戜竴涓?/p>
java -version
浼氭槸涓嬪浘鐨勬牱瀛?/p>
2.瀹夎graphviz
graphviz 鏄竴涓紑婧愮殑棰濆浘鐗囨覆鏌撳簱锛屽彲浠ュ皢PlantUML鑴氭湰杞崲鎴愬浘鐗囥€?/p>
缁堢涓緭鍏?/p>
brew install graphviz
鏈夊ソ鍑犱釜渚濊禆鍖呬細涓嬶紝鎵€浠ラ渶瑕佷竴浜涙椂闂达紝鑰愬績绛夊緟
3.VSCode瀹夎plantUML鎻掍欢
- 鎵撳紑VSCode
- ?(command) + shift + X鎵撳紑鎵╁睍锛屾悳绱lantUML
- 閫夋嫨鏄熸渶澶氱殑锛屼竴鑸氨绗竴涓?/li>
- install
4.浣跨敤
- 鏂板缓涓€涓枃浠?/li>
- 杈撳叆鏍蜂緥
@startuml title 鏃跺簭鍥? == 閴存潈闃舵 == Alice -> Bob: 璇锋眰 Bob -> Alice: 搴旂瓟 == 鏁版嵁涓婁紶 == Alice -> Bob: 涓婁紶鏁版嵁 note left: 杩欐槸鏄剧ず鍦ㄥ乏杈圭殑澶囨敞 Bob --> Canny: 杞氦鏁版嵁 ... 涓嶈秴杩?5 绉掗挓 ... Canny --> Bob: 鐘舵€佽繑鍥?note right: 杩欐槸鏄剧ず鍦ㄥ彸杈圭殑澶囨敞 Bob -> Alice: 鐘舵€佽繑鍥? == 鐘舵€佹樉绀?== Alice -> Alice: 缁欒嚜宸卞彂娑堟伅 @enduml
淇濆瓨鏂囦欢涓簍est.wsd
- alt + D鍙充晶鍗冲彲娓叉煋鍑篣ML鍥?/li>
涓?鍏朵粬寮€鍙戝伐鍏蜂娇鐢≒lantUML閰嶇疆
鍦ˋndroidStudio涓娇鐢≒lantUML(for Mac)
Mac浣跨敤Sublime + PlantUML楂樻晥鍦扮敾鍥?/a>
Mac鐜涓嬶紝Intellij IDEA涓畨瑁呬娇鐢≒lantUML鐢绘椂搴忓浘
PlantUML Viewer Chrome 鎻掍欢 鐢绘椂搴忓浘
Information about the PlantUML Eclipse Plugin
鐢ˋtom鍦∕ac OS X 涓嬬紪杈慞lantUML
END
以上是关于Mac 閰嶇疆 PlantUML的主要内容,如果未能解决你的问题,请参考以下文章