File structure
The Structure tool window: View | Tool Windows | Structure or Alt07
The Structure popup: Navigate | File Structure or CtrlF12
IntelliJ IDEA allows you to view and navigate the structure of a file in the Structure tool window and the Structure popup.


You can see the VCS status color hints in the Structure tool window and Structure popup if your project is under version control. It helps you track changes in files. The names of modified objects become blue, and the names of the newly added objects appear in the tool window highlighted in green.
The popup provides less information than the tool window, but it allows you to navigate the structure faster due to the Narrow down on typing option.
Open a file in the editor and in the main menu, go to Navigate | File Structure or press CtrlF12.
In the popup, start typing the name of the element that you want to find. You can also use wildcards. The IDE will narrow down the search results as you type.
You can additionally narrow down your search results by using the checkboxes in the popup. To change the sorting, click
and select the necessary option.
Press Enter or click an item to close the popup and navigate to the selected element in the editor.
- Inherited members
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.
- Anonymous Classes
Displays inner anonymous classes in the tree view.
- Lambdas
Displays all lambdas in the tree.
- Alphabetically
Sorts elements within a class alphabetically.
- By Visibility
Sorts items by their visibility in the following order: public - protected - package local - private.
- Narrow down on typing
Hides irrelevant items as you type. When this option is disabled, the IDE highlights all items that match your search query without hiding irrelevant items.
Open a file in the editor or select it in the Project tool window.
In the main menu, go to View | Tool Windows | Structure or press Alt07.
In the tool window, start typing the name of the element that you want to find. You can also use wildcards. The IDE will highlight the search results as you type.
You can additionally narrow down your search results or sort the items in the tool window by using the options located under
.
- Alphabetically
Sorts elements within a class alphabetically.
- By Visibility
Sorts the items by their visibility in the following order: public - protected - package local - private.
tip
When both options are enabled, the items in the view are grouped according to their visibility levels. Within each visibility level group, the items are sorted alphabetically. When both options are disabled, the items are shown in the order they appear in the code.
- Anonymous Classes
Displays inner anonymous classes in the tree view.
- 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.
- Lambdas
Displays all lambdas in the tree.
- Non-public
Displays all non-public class members.
Turn the option off to hide all non-public members.
- 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.
- Methods by Defining Type
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.
- Properties
Displays getters, setters, and fields in the tree.
- Group by type
(Only for SQL files) Group statements by their type (for example, DDL statements, DML statements, SELECT statements, and Other).
In the Project tool window Alt01, click
in the title bar and select Tree Appearance | Show Members.
Thanks for your feedback!