PyCharm 2024.2 Help

Structure tool window, File structure popup

Structure tool window

View | Tool Windows | Structure or Alt+7

This tool window displays the structure of a file currently opened in the editor and having the focus, or selected in the Project tool window.

For diagrams, this tool window shows the diagram preview.

It also displays the structure of a Jupyter Notebook, showing both Markdown and Python cells. For more information, refer to Jupyter Notebook Support.

File Structure popup

Navigate | File Structure or Ctrl+F12

This popup displays the structure of a file, currently opened in the editor and having the focus.

Both views help quickly navigate through the file structure.

Header

The buttons on the header are common for all language contexts.

Icon

Tooltip

Description

View Options

View Options

Click this button to open the menu and configure the appearance of the tool window.

Options

Options

Click this button to open the Options menu.

Hide tool window

HideShift+Escape

Hide the tool window Shift+Escape.

To hide all the tool windows, press Ctrl+Shift+F12.

Options menu

The Options context menu is common for all language contexts.

Option

Description

Expand All

Choose this option to expand all the nodes in the tool window.

Collapse All

Choose this option to collapse all the nodes in the tool window.

Navigate with Single Click

Choose this option to enable automatic navigation to the line of source code that corresponds to the selected node when the focus switches to the editor.

Always Select Opened Element

Choose this option to have PyCharm automatically move the focus in the Structure tool window to the node that corresponds to the code where the caret is currently positioned in the editor.

Speed Search Ctrl+F

Use the Speed Search bar to quickly find an item in the tool window.

View Mode

This option lets you control the general appearance and behavior of the tool window.

For more information, refer to Tool window view modes.

Move to

For full information, refer to Move tool windows.

Resize

To resize the tool window by moving one of its borders, select this command, and then select the necessary Stretch to option.

For more information, refer to Resize tool windows.

Remove from Sidebar

This option hides the tool window, removes the associated tool window button from the tool window bar, and removes the tool window from the quick access menu.

View options

Sort

Alphabetically

Sorts elements within a class alphabetically.

Show

Fields

Displays all fields (properties) in the tree.

Inherited

Displays all methods and fields inherited by the current class and accessible from it. The inherited members are displayed gray to distinguish them from the members defined in the current class.

Inherited from Object

(Only for JavaScript, TypeScript, CoffeeScript files) Choose this option to display all the methods and fields inherited from the current Object.

HTML Outline

(Only for HTML files) Displays HTML 5 outline of an HTML file

DDL statements

(Only for SQL files) Displays only DDL statements (for example, CREATE, ALTER, DROP, and other statements).

DML statements

(Only for SQL files) Displays only DML statements (for example, SELECT, INSERT, UPDATE, DELETE, and other statements).

Select statements

(Only for SQL files) Displays only SELECT statements.

Other

(Only for SQL files) Displays only statements that do not fall under the previous categories.

Group

Methods by Defining Type

(Only for JavaScript, TypeScript, CoffeeScript files) Groups all methods that override or implement the methods of a particular class or interface under the node that corresponds to this class or interface.

Group by type

(Only for SQL files) Group statements by their type (for example, DDL statements, DML statements, SELECT statements, and Other).

Last modified: 29 August 2024