36

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.

Philipp Claßen
  • 41,306
  • 31
  • 146
  • 239

3 Answers3

42

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?

Community
  • 1
  • 1
joe776
  • 1,106
  • 14
  • 23
12

Try use Ctrl+H Hierarchy class panel should show.

Alexey Odintsov
  • 1,705
  • 11
  • 13
5

Another option is to set the Keymap to Eclipse in IDE Settings and you would continue to be able to use F4. Go to Settings using Ctrl+Alt+S type Keymap in search box and change Keymaps to Eclipse.

Note: I am using IntelliJ IDEA 12.0.1 ultimate.

enter image description here

Kuldeep Jain
  • 8,409
  • 8
  • 48
  • 73