PyCharm 2018.2 Help

Hierarchy Tool Window

View | Tool Windows | Hierarchy
Alt+8

Use the Hierarchy tool window to analyze and navigate through hierarchies of classes.

You can update the previously built hierarchy by clicking the Refresh icon (icons actions refresh svg) in the Hierarchy tool window. Alternatively, the results are updated when you run the next hierarchy command (unless you pinned (icons general pin tab svg) the tab with one of the previously built hierarchies).

Toolbar buttons

Item

Description

Available In

icons toolwindows toolWindowHierarchy

Shows both the parent and child classes of the selected class, which is marked with an arrow hierarchyClassArrow in the tree of results.

Class hierarchies

icons hierarchy supertypes svg

Shows the hierarchy of each supertype of the current class.

Class hierarchies
Call hierarchies

icons hierarchy subtypes svg

Shows all classes that extend the selected class.

Class hierarchies
Call hierarchies

icons objectBrowser sorted svg

Sorts all elements within a tree alphabetically.

All hierarchies

Scope

Use this drop-down list to limit the scope of the current hierarchy:
  • Project: Traces usages of the method across the project.

  • Test: Traces usages of the method across the test classes.

  • All: Traces usages of the method across the project and the libraries.

  • This class: Limits the scope to the current class.

In addition to the preconfigured scopes, you can define your own one. To define a scope, select Configure from the drop-down list, and define the required scope in the Scopes dialog box.

Call hierarchies

In a method hierarchy, the tree views of the following classes are available:

  • icons general add: The method is defined.

  • icons general remove svg: The method is defined only in the superclass.

  • icons general exclMark: The method must be defined because the class is not abstract.

icons actions refresh svg

Shows all updated classes or class structures.

All hierarchies

icons general autoscrollToSource

Moves to a file and a section in a source code that corresponds to the selected node in the hierarchy tree.

All hierarchies

Pin button

Locks the current tab from closing and reusing. Results of the next command are displayed in a new tab.

All hierarchies

icons.toolbarDecorator.export.svg.png

Exports a hierarchy into a text file. You can specify a location for this file.

All hierarchies

icons.actions.close.png

Closes the selected tab.

All hierarchies

icon_help.png

Shows the reference page.

All hierarchies

Last modified: 12 October 2018

See Also