PhpStorm 2017.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, PhpStorm 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

web_ide_structure_tool_window.png

Viewing members

To have class fields displayed

  • Click field on the toolbar of the Structure tool window.

To have constants displayed

  • Click php storm structure show constants on the toolbar of the Structure tool window.

To have inherited members displayed

  • Click show inherited on the toolbar of the Structure tool window.

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

To have included files displayed

  • Click show includes 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.
    ps projectToolWindowShowMembers
Last modified: 29 March 2018

See Also