I am using InteliJ IDEA `Show Diagram` action on t...
# getting-started
i
I am using InteliJ IDEA
Show Diagram
action on the base class, but I see only single class. Is there any way to see all of the child classes as well? I imaging there is a swich to turn on, a bug in IDE 🤔 BTW Is there any other tool to draw nice class hierarchy?
v
iirc right click on that node and tell it to add the children
m
Try right-clicking the project in the Project tool window and then selecting Show Diagram.
i
@Vampire Is there an option to all all children at once? @Marit van Dijk This is wired sometimes works, fine other times I see bunch of module dependenciesŚ instead of classes nested in the given package
I don't get this Idea approach - I really just need quick access to class diagram (in given context) to facilitate development and PR review
v
The approach is, that it shows the class and its ancestors (at least for Java classes). And if you do right click and select "Show implementations", it gives you a list of all descendents and you can select which to add to the diagram. I assume it is the same for Kotlin files.
Yes, works the same for me with Kotlin classes
w
For me (on MacOS) it works to press select the node, press
cmd+B
, then
cmd+A
, then
enter
v
Yes, that's exactly what I described, just with Keyboard shortcuts 🙂
🐕 1
i
thx @Wout Werkman - I didn't realised that I can ad all of them at once. Even better they stick after repenting the diagram. BTW @Vampire similar point, but it was not clear for me that I can add all of them easily 😉
👌 1
👍 1