IntelliJ IDEA 2016.3 Help

Viewing Structure of a Source File

On this page:

Basics

You can examine the structure of the file currently opened in the editor using the Structure tool window or the Structure pop-up window.

By default, IntelliJ IDEA shows all the classes, methods, etc. presented in the current file.

To have other members displayed, click the corresponding buttons on the toolbar of the Structure tool window.

You can also have class members shown in the Project tool window.

Viewing the structure of a file

To view the file structure, do one of the following

Viewing members

To have class fields displayed

  • Click /help/img/idea/2016.3/field.png on the toolbar of the Structure tool window.

To have inherited members displayed

  • Click /help/img/idea/2016.3/show-inherited.png on the toolbar of the Structure tool window.

By default, IntelliJ IDEA shows only methods, constants, and fields defined in the current class. If shown, inherited members are displayed gray.

To have included files displayed

  • Click /help/img/idea/2016.3/show_includes.png on the toolbar.

To have class members shown in the Project tool window

  • Turn on the Show members item on the context menu of the Project tool window title bar. If this option is on, the files in the tree that contain classes turn into nodes. When such node is unfolded, the contained classes with their fields, methods, and other members of the selected item are shown.
    /help/img/idea/2016.3/show_members.png

See Also

Last modified: 7 December 2016