Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IDEA equivalent of Eclipse "type hierarchy" (F4)?

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.

like image 991
Philipp Claßen Avatar asked Jul 10 '13 13:07

Philipp Claßen


People also ask

What is Eclipse hierarchy type?

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.

How to see class hierarchy in IntelliJ?

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 .

How can I see the hierarchy in Eclipse?

Press Ctrl+Shift+H -or- from the Menu Bar go to Navigate | Open Type in Hierarchy. The "Open Type in Hierarchy" dialog is displayed.


2 Answers

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?

like image 193
joe776 Avatar answered Sep 25 '22 18:09

joe776


Try use Ctrl+H Hierarchy class panel should show.

like image 32
Alexey Odintsov Avatar answered Sep 24 '22 18:09

Alexey Odintsov