# View source code hierarchy

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

> **TL;DR**
> Class hierarchy: `Navigate | Type Hierarchy` or `Ctrl+H` (Windows), `⌃ H` (macOS), `⌃ H` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ H` (macOS System Shortcuts), `Ctrl+H` (XWin), `Ctrl+H` (GNOME), `Ctrl+H` (KDE), `Ctrl+H` (Emacs), `Ctrl+H` (Sublime Text), `Ctrl+H` (Sublime Text (macOS)), `Ctrl+E, H` (Visual Studio), `⌘ E, H` (Visual Studio (macOS)), `Ctrl+H` (TextMate), `Alt+Shift+F12` (NetBeans), `F4` (Eclipse), `F4` (Eclipse (macOS))
>
>
>
> Call hierarchy: `Navigate | Call Hierarchy` or `Ctrl+Alt+H` (Windows), `⌃ ⌥ H` (macOS), `⌃ ⌥ H` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ H` (macOS System Shortcuts), `Ctrl+Alt+H` (XWin), `Ctrl+Alt+H` (GNOME), `Ctrl+Alt+H` (KDE), `Ctrl+Alt+H` (Emacs), `Ctrl+Alt+H` (Sublime Text), `⌃ ⌥ H` (Sublime Text (macOS)), `Ctrl+Alt+H` (Visual Studio), `⌃ ⌥ H` (Visual Studio (macOS)), `Ctrl+Alt+H` (TextMate), `Ctrl+Alt+H` (NetBeans), `Ctrl+Alt+H` (Eclipse), `⌃ ⌥ H` (Eclipse (macOS))
>
>
>
> Tool window: `View | Tool Windows | Hierarchy`

RubyMine enables you to examine the hierarchy of classes and calls in the Hierarchy tool window.

Procedure: Build the hierarchy of classes

1. Choose the desired class in one of the following ways:

* In the editor, place the caret at the class name.

* Select the class in 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))).

2. Go to `Navigate | Type Hierarchy` or press `Ctrl+H` (Windows), `⌃ H` (macOS), `⌃ H` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ H` (macOS System Shortcuts), `Ctrl+H` (XWin), `Ctrl+H` (GNOME), `Ctrl+H` (KDE), `Ctrl+H` (Emacs), `Ctrl+H` (Sublime Text), `Ctrl+H` (Sublime Text (macOS)), `Ctrl+E, H` (Visual Studio), `⌘ E, H` (Visual Studio (macOS)), `Ctrl+H` (TextMate), `Alt+Shift+F12` (NetBeans), `F4` (Eclipse), `F4` (Eclipse (macOS)).

![Class hierarchy](https://resources.jetbrains.com/help/img/idea/2026.3/rm_type_hierarchy_all.png)

3. Use the ![Supertypes Hierarchy](https://resources.jetbrains.com/help/img/idea/2026.3/app.hierarchy.supertypes.svg) or ![Subtypes Hierarchy](https://resources.jetbrains.com/help/img/idea/2026.3/app.hierarchy.subtypes.svg) buttons to display a hierarchy of parent or child classes, respectively.

![Subtypes hierarchy](https://resources.jetbrains.com/help/img/idea/2026.3/rm_type_hierarchy_subclasses.png)

Procedure: Build the hierarchy of method calls

1. Choose the desired method in one of the following ways:

* In the editor, place the caret at the method declaration or usage.

* Select the method in 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))).

* Select the method in the [Rails view](project-tool-window.html#views) of the Project tool window.

2. Go to `Navigate | Call Hierarchy` or press `Ctrl+Alt+H` (Windows), `⌃ ⌥ H` (macOS), `⌃ ⌥ H` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ H` (macOS System Shortcuts), `Ctrl+Alt+H` (XWin), `Ctrl+Alt+H` (GNOME), `Ctrl+Alt+H` (KDE), `Ctrl+Alt+H` (Emacs), `Ctrl+Alt+H` (Sublime Text), `⌃ ⌥ H` (Sublime Text (macOS)), `Ctrl+Alt+H` (Visual Studio), `⌃ ⌥ H` (Visual Studio (macOS)), `Ctrl+Alt+H` (TextMate), `Ctrl+Alt+H` (NetBeans), `Ctrl+Alt+H` (Eclipse), `⌃ ⌥ H` (Eclipse (macOS)).

![Callers hierarchy](https://resources.jetbrains.com/help/img/idea/2026.3/rm_call_hierarchy_callers.png)

3. Use ![Callee Method Hierarchy](https://resources.jetbrains.com/help/img/idea/2026.3/app.hierarchy.subtypes.svg) button to show methods used by the method you are investigating.

![Callees hierarchy](https://resources.jetbrains.com/help/img/idea/2026.3/rm_call_hierarchy_callees.png)

