Something similar to class diagram in Visual studio to show inheritance tree.
I'm working with a base class in Rider and would like to see all the classes that derive from it. In Visual Studio, there’s a plugin called Class Designer that allows you to visualize derived classes easily.
I found the Dependency Diagram in Rider, but it doesn’t seem to display the relationship between the base class and its derived classes.
Is this feature available in the Dependency Diagram, or is there another tool or method in Rider that I should use to achieve this?
Please sign in to leave a comment.
(I am not JetBrains, I'm just another user).
You can click the down arrow O icon in the gutter next to your parent class's definition/name line and that will show you a list of inheritors.
You can click the top right button of that popup window to export the list to the find results window.
You could then theoretically select types in the find results window and right-click them and choose Show Type Dependency Diagram, but it seems to be very finicky about what it would actually let use that option so that does not really work; most of the time that option seems to not do anything.
Assuming you can get your types to the Type Dependency Diagram window in the first place, I'm not sure what you're otherwise missing. The diagram is pretty limited but it should show inheritance arrows from the child classes pointing at their parent classes. You may need to click the “Inheritance” toggle button on the toolbar of the diagram window to get these lines/arrows to appear.
For my project Visual Studio successfully builds Class Diagram via Class Designer, while Rider for the same project shows nothing. Diagrams in Rider do not work correctly with Unreal Engine projects?
Hello,
Rider doesn't support type dependency diagrams for C++. We have this feature request on our tracker and would appreciate it if you could upvote it: RIDER-74293 Type Dependency Diagram support (C++)
Have a nice day!