RubyMine 2023.3 Help

View source file structure

RubyMine allows you to examine the high-level structure of the opened file using the Structure tool window Alt+7. 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 view

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.

Structure popup

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.

  1. Open a file in the editor and in the main menu, go to Navigate | File Structure or press Control+F12.

  2. 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.

  3. You can additionally narrow down your search results by using the checkboxes in the popup. To change the sorting, click App client expui general settings and select the necessary option.

  4. 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.

Alphabetically

Sorts elements within a class alphabetically.

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.

Structure tool window

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

  2. In the main menu, go to View | Tool Windows | Structure or press Alt+7.

  3. 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.

  4. You can additionally narrow down your search results or sort the items in the tool window by using the options located under App client expui general show.

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.

Last modified: 08 December 2023