PyCharm 2018.1 Help

Viewing Hierarchies

Once built, hierarchies can be brought up for close examination in the Hierarchy tool window.

Showing the Hierarchy tool window

The Hierarchy tool window is not shown when there are no hierarchies to display. You have to build hierarchies first.

Refer to Building Class Hierarchy to learn how to build hierarchies.

To open the Hierarchy tool window, do one of the following

  • On the main menu, choose View | Tool Windows | Hierarchy.
  • Use Alt+8 keyboard shortcut.

Do one of the following:

  • Right-click the currently displayed tab, and choose Select Next Tab/Select Previous Tab on the context menu.
  • Use the Alt+Right and Alt+Left keyboard shortcuts.
  • Click the currently displayed tab, and choose the next tab to display.
    py show hierarchy

Toggling between views

Toggling between views means showing ascending or descending hierarchy (callee vs. caller methods, parent vs. children classes etc.) To toggle between views, use the toolbar of the Hierarchy tool window:

  • Click hierarchyClassSupertypes to show caller methods, or supertypes.
  • Click hierarchyClassSubtypes to show callee methods, or subtypes.

Last modified: 7 May 2018

See Also