# File structure

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/ruby/2026.3/llms.txt).

> **TL;DR**
> The Structure tool window: `View | Tool Windows | Structure` or `Alt+7` (Windows), `⌘ 7` (macOS), `⌘ 7` (IntelliJ IDEA Classic (macOS)), `⌘ 7` (macOS System Shortcuts), `Alt+7` (XWin), `Alt+7` (GNOME), `Alt+7` (KDE), `Alt+7` (Emacs), `Alt+7` (Sublime Text), `⌘ 7` (Sublime Text (macOS)), `Ctrl+Alt+F` (Visual Studio), `⌃ ⌥ F` (Visual Studio (macOS)), `Meta+7` (TextMate), `Ctrl+7` (NetBeans), `Alt+7` (Eclipse), `⌘ 7` (Eclipse (macOS))
>
>
>
> The Structure popup: `Navigate | File Structure` or `Ctrl+F12` (Windows), `⌘ F12` (macOS), `⌘ F12` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ 7` (macOS System Shortcuts), `Ctrl+F12` (XWin), `Ctrl+F12` (GNOME), `Ctrl+0` (KDE), `Ctrl+F12` (Emacs), `Ctrl+R` (Sublime Text), `⌘ R` (Sublime Text (macOS)), `Alt+\` (Visual Studio), `⌥ \` (Visual Studio (macOS)), `Meta+F12` (TextMate), `Ctrl+F12` (NetBeans), `Ctrl+F3` (Eclipse), `⌘ O` (Eclipse (macOS))

RubyMine allows you to examine the high-level structure of the opened file using the Structure tool window `Alt+7` (Windows), `⌘ 7` (macOS), `⌘ 7` (IntelliJ IDEA Classic (macOS)), `⌘ 7` (macOS System Shortcuts), `Alt+7` (XWin), `Alt+7` (GNOME), `Alt+7` (KDE), `Alt+7` (Emacs), `Alt+7` (Sublime Text), `⌘ 7` (Sublime Text (macOS)), `Ctrl+Alt+F` (Visual Studio), `⌃ ⌥ F` (Visual Studio (macOS)), `Meta+7` (TextMate), `Ctrl+7` (NetBeans), `Alt+7` (Eclipse), `⌘ 7` (Eclipse (macOS)). You can use this tool window to quickly navigate between methods or tests in Ruby files, elements in HTML and ERB files, database tables and table columns in schema files, and so on.

Structure popup:

![Structure view](https://resources.jetbrains.com/help/img/idea/2026.3/rm_structure_popup.png)

Structure tool window:

![Highlighting changes in files](https://resources.jetbrains.com/help/img/idea/2026.3/rm_color_status_in_structure.png)

You can see the [VCS status colors](adding-files-to-version-control.html#file_status) in the  Structure  tool window and the Structure  popup if your project is under [version control](version-control-integration.html). It helps you track changes in files. The names of modified objects become blue, and the names of the newly added objects appear highlighted in green.

Hover over icons in Structure to get additional information in tooltips about the items.

## Structure popup

The popup provides less information than the [tool window](#structure-tool-window), but it allows you to navigate the structure faster due to the [Narrow down on typing](#narrow-down-typing) option.

Procedure:

1. Open a file in the editor and press `Ctrl+F12` (Windows), `⌘ F12` (macOS), `⌘ F12` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ 7` (macOS System Shortcuts), `Ctrl+F12` (XWin), `Ctrl+F12` (GNOME), `Ctrl+0` (KDE), `Ctrl+F12` (Emacs), `Ctrl+R` (Sublime Text), `⌘ R` (Sublime Text (macOS)), `Alt+\` (Visual Studio), `⌥ \` (Visual Studio (macOS)), `Meta+F12` (TextMate), `Ctrl+F12` (NetBeans), `Ctrl+F3` (Eclipse), `⌘ O` (Eclipse (macOS)), or go to `Navigate | File Structure` in the main menu.

2. In the popup, start typing the name of the element that you want to find. The IDE will narrow down the search results as you type.

You can also use [CamelHumps](null) , that is, for example, you can type `dsu`  to match  .

3. You can additionally narrow down your search results by using the checkboxes in the popup. To change the sorting, click ![](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.general.settings.svg) and select the necessary option.

4. Press `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (TextMate), `Enter` (NetBeans), `Enter` (Eclipse), `⏎` (Eclipse (macOS)) or click an item to close the popup and navigate to the selected element in the editor.

![Structure popup](https://resources.jetbrains.com/help/img/idea/2026.3/rm_file-structure-popup-menu.png)

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.

Alphabetically
: Sorts elements within a class alphabetically.

Narrow down on typing
: Hides irrelevant items [as you type](speed-search-in-the-tool-windows.html). When this option is disabled, the IDE highlights all items that match your search query without hiding irrelevant items.

## Structure tool window

Procedure:

1. Open a file in the editor or select it in the  Project tool window .

2. Press `Alt+7` (Windows), `⌘ 7` (macOS), `⌘ 7` (IntelliJ IDEA Classic (macOS)), `⌘ 7` (macOS System Shortcuts), `Alt+7` (XWin), `Alt+7` (GNOME), `Alt+7` (KDE), `Alt+7` (Emacs), `Alt+7` (Sublime Text), `⌘ 7` (Sublime Text (macOS)), `Ctrl+Alt+F` (Visual Studio), `⌃ ⌥ F` (Visual Studio (macOS)), `Meta+7` (TextMate), `Ctrl+7` (NetBeans), `Alt+7` (Eclipse), `⌘ 7` (Eclipse (macOS)) or go to `View | Tool Windows | Structure` in the main menu.

3. In the tool window, [start typing](speed-search-in-the-tool-windows.html) the name of the element that you want to find. You can also use CamelHumps. The IDE will highlight the search results as you type.

4. You can additionally narrow down your search results or sort the items in the tool window by using the options located under ![](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.general.show.svg).

![Structure tool window](https://resources.jetbrains.com/help/img/idea/2026.3/rm_structure_tool_window.png)

### View options

#### Sort

Alphabetically
: Sorts elements within a class alphabetically.

#### Show

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.

Show Variables
: Displays instance and class variables.

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.

