how to use the plantUML preview in VSCode?
I had the same issue. My preview started working right after I installed the Java Runtime Environment (JRE).
I had the same issue. My preview started working right after I installed the Java Runtime Environment (JRE).
You can use the following command with State, Class, Component or Usecase diagrams: left to right direction (see https://plantuml.com/use-case-diagram#d551e48d272b2b07) Edit: This comment from 2012 originally claimed that the feature was scheduled for the next release. It’s been available forever now.
I’ve tried nfec’s solution and it was not working for me, but it started me off on a solution that did work. Here is what I got: legend right |Color| Type | |<#FF0000>| Type A class| |<#00FF00>| Type B class| |<#0000FF>| Type C class| endlegend This is how it looks like:
UPDATES Aug.08.2019 From Rotsiser’s comment, by combining changing the length of lines with together keyword, it can align elements @startuml class A A ..> B C —> B D …> B together { class E class F class G } E —-> B @enduml OUTDATED You are able to align elements by changing the number … Read more
On a mac using Intellij, if Intellij cannot find graphviz, testdot doesn’t work and graphviz was installed with brew install graphviz: In Intellij, click the wrench icon on the far right of the menu panel that contains the plantuml view and editor arrangement. Click ‘Open settings’ For ‘Graphviz dot executable’ add /opt/homebrew/bin/dot. Click OK and … Read more
There are some tricks that you can try, listed below. The layouting itself is performed by GraphViz (dot layouting iirc), and GraphViz simply does this sometimes. Graph layouting is a NP-complete problem, so algorithms usually take harsh shortcuts. Typical workarounds that I’ve seen or used include: adding hidden lines a -[hidden]- b extending the length … Read more
A typical approach is to mark a line as hidden. One thing to keep in mind is that hidden is only supported for left-to-right ->, and top-to-bottom –> lines, so you need to place the left and right side accordingly (syntax X <[hidden]- Y doesn’t seem to be supported). @startuml class ComponentA ComponentB -[hidden]> ComponentA … Read more