In Eclipse, you can select a Java class and show the class hierarchy ("open type hierarchy" or F4 in default bindings). It opens the "Type Hierarchy" view, which lists its base classes and the tree of its subclasses.
I'm sure there is an equivalent in IDEA to get this information but I haven't found it yet.
What workflow is best in IDEA to quickly show the base classes of a given class?
Visualizing the subclasses is nice to have but less critical for me. In the editor, I can find the immediate subclasses easily via the "has subclasses" button on the left pane.
This allows you to view an element's supertypes (types higher in the hierarchy) or subtypes (lower in the hierarchy) within a tree structure, providing you with an overview of your element's structure. See Viewing Types in the Type Hierarchy View for information on how to open a type in the Type Hierarchy view.
Select the desired class in the Project tool window or open it in the editor. From the main menu, select Navigate | Type Hierarchy or just press Ctrl+H .
Press Ctrl+Shift+H -or- from the Menu Bar go to Navigate | Open Type in Hierarchy. The "Open Type in Hierarchy" dialog is displayed.
Is this the feature you are looking for? The shortcut is Ctrl+H
http://www.jetbrains.com/idea/webhelp/building-class-hierarchy.html
Ctrl+Alt+U
also shows a type hierarchy: How to show all parents and subclasses of a class in IntelliJ IDEA?
Try use Ctrl+H Hierarchy class panel should show.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With