Issue
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.
Solution
Is this the feature you are looking for? The shortcut is Ctrl+H
https://www.jetbrains.com/help/idea/viewing-structure-and-hierarchy-of-the-source-code.html
Ctrl+Alt+U also shows a type hierarchy: How to show all parents and subclasses of a class in IntelliJ IDEA?
Answered By - joe776
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.