PyCharm 2019.2 Help

Hierarchy Tool Window

View | Tool Windows | Hierarchy
N/A

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 the Pin button the tab with one of the previously built hierarchies).

Toolbar buttons

Item

Description

Available In

icons toolwindows toolWindowHierarchy svg

Shows both the parent and child classes of the selected class, which is marked with an arrow Child class 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 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 list, and define the required scope in the Scopes dialog.

Call hierarchies

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

  • icons general add svg: The method is defined.

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

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

icons actions refresh svg

Shows all updated classes or class structures.

All hierarchies

Autoscroll to Source

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.svg.png

Closes the selected tab.

All hierarchies

icon_help.png

Shows the reference page.

All hierarchies

Last modified: 6 November 2019