# Definition and type definition

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

In RubyMine, you can see where and how symbols, such as classes, fields, methods, functions, or tags    are defined in your project. For this purpose, the IDE features the Quick Definition popup.

![Quick Definition popup](https://resources.jetbrains.com/help/img/idea/2026.3/rm_view_reference_definition.png)

Procedure: View definition of a symbol at caret

* Place the caret at a symbol in the editor and press `Ctrl+Shift+I` (Windows), `⌥ Space` (macOS), `⌘ ⇧ I` (IntelliJ IDEA Classic (macOS)), `⌘ Y` (macOS System Shortcuts), `Ctrl+Shift+I` (XWin), `Ctrl+Shift+I` (GNOME), `Ctrl+Shift+I` (KDE), `Ctrl+Shift+I` (Emacs), `Ctrl+Shift+I` (Sublime Text), `⌥ Space` (Sublime Text (macOS)), `Alt+F12` (Visual Studio), `⌥ Space` (Visual Studio (macOS)), `Meta+Shift+I` (TextMate), `Ctrl+Shift+I` (NetBeans), `Ctrl+Shift+I` (Eclipse), `⌥ Space` (Eclipse (macOS)) (or click `View | Quick Definition` in the main menu). You can also   press `Ctrl+Shift+A` (Windows), `⌘ ⇧ A` (macOS), `⌘ ⇧ A` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ P` (macOS System Shortcuts), `Ctrl+Shift+A` (XWin), `Ctrl+Shift+A` (GNOME), `Ctrl+Shift+A` (KDE), `Escape, X` (Emacs), `Ctrl+Shift+P` (Sublime Text), `⌘ ⇧ P` (Sublime Text (macOS)), `Ctrl+Shift+A` (Visual Studio), `⌘ ⇧ A` (Visual Studio (macOS)), `Meta+Shift+A` (TextMate), `Ctrl+I` (NetBeans), `Ctrl+Shift+A` (Eclipse), `⌘ 3` (Eclipse (macOS)), start typing `Quick Definition` , then select the action from the list.

* Alternatively, with the `Ctrl` (Windows), `Ctrl` (macOS), `Ctrl` (IntelliJ IDEA Classic (macOS)), `Ctrl` (macOS System Shortcuts), `Ctrl` (XWin), `Ctrl` (GNOME), `Ctrl` (KDE), `Ctrl` (Emacs), `Ctrl` (Sublime Text), `Ctrl` (Sublime Text (macOS)), `Ctrl` (Visual Studio), `Ctrl` (Visual Studio (macOS)), `Ctrl` (TextMate), `Ctrl` (NetBeans), `Ctrl` (Eclipse), `Ctrl` (Eclipse (macOS)) key pressed, hover over any symbol. RubyMine displays the symbol as a link and shows its definition in a tooltip. Click this link to jump to the definition of the symbol.

![View definition in a tooltip](https://resources.jetbrains.com/help/img/idea/2026.3/rm_view_reference_ctrl_hover.animated.gif)

You can open a definition in the Find tool window. To do so, click the ![Options](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.more.svg) icon in the top-right corner of the popup and click ![Open in Find tool window](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.moveToBottomLeft.svg) Open in Find Tool Window.

To open the source code of the definition for editing and close the popup, click the ![Options](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.general.moreVertical.svg) icon and then click ![Edit](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.edit.svg) Edit Source (`F4` (Windows), `⌘ ↓` (macOS), `F4` (IntelliJ IDEA Classic (macOS)), `F4` (macOS System Shortcuts), `F4` (XWin), `F4` (GNOME), `F4` (KDE), `F4` (Emacs), `F4` (Sublime Text), `F4` (Sublime Text (macOS)), `F4` (Visual Studio), `⌘ ↓` (Visual Studio (macOS)), `F4` (TextMate), `F4` (NetBeans), `F12` (Eclipse), `F3` (Eclipse (macOS))).

> **Tip:**
> For markup languages, RubyMine retrieves definitions of symbols from the specified DTD or schema.  For more information, refer to [HTML](editing-html-files.html) and [XML](working-with-xml.html).

## Type definitions

The Quick Type Definition feature allows you to view the type definition of variables,   methods, or any other symbols in a popup without switching from the code you're editing.

Procedure:

* Place the caret at the symbol for which you want to view the type definition and select `View | Quick Type Definition`.

![Viewing type definition in a popup](https://resources.jetbrains.com/help/img/idea/2026.3/rm_quick_type_definition.png)

To open the source code of the definition for editing and close the popup, click the ![Options](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.more.svg) icon and then click ![Edit](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.general.edit.svg) Edit Source (`F4` (Windows), `⌘ ↓` (macOS), `F4` (IntelliJ IDEA Classic (macOS)), `F4` (macOS System Shortcuts), `F4` (XWin), `F4` (GNOME), `F4` (KDE), `F4` (Emacs), `F4` (Sublime Text), `F4` (Sublime Text (macOS)), `F4` (Visual Studio), `⌘ ↓` (Visual Studio (macOS)), `F4` (TextMate), `F4` (NetBeans), `F12` (Eclipse), `F3` (Eclipse (macOS))).

RubyMine doesn't have a default keyboard shortcut for this action, but you can manually configure it in the settings. For more information about configuring custom shortcuts, refer to [Configure keyboard shortcuts](configuring-keyboard-and-mouse-shortcuts.html).

## Toolbar of the quick definition lookup

Use the icons on the toolbar of the popup to navigate to the source code of the definition and view its usages.

| Icon | Keyboard shortcut | Action |
| --- | --- | --- |
|  ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.back.svg) ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.forward.svg)  |  `Alt+Shift+Left` (Windows), `⌃ ⇧ ←` (macOS), `⌃ ⇧ ←` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ ←` (macOS System Shortcuts), `Alt+Shift+Left` (XWin), `Alt+Shift+Left` (GNOME), `Alt+Shift+Left` (KDE), `Alt+Shift+Left` (Emacs), `Alt+Shift+Left` (Sublime Text), `⌃ ⇧ ←` (Sublime Text (macOS)), `Alt+Shift+Left` (Visual Studio), `Alt+Shift+Left` (Visual Studio (macOS)), `Ctrl+Shift+Left` (TextMate), `Ctrl+Alt+Page Up` (NetBeans), `Ctrl+Alt+Shift+Right` (Eclipse), `Alt+Shift+Left` (Eclipse (macOS)), `Alt+Shift+Right` (Windows), `⌃ ⇧ →` (macOS), `⌃ ⇧ →` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ →` (macOS System Shortcuts), `Alt+Shift+Right` (XWin), `Alt+Shift+Right` (GNOME), `Alt+Shift+Right` (KDE), `Alt+Shift+Right` (Emacs), `Alt+Shift+Right` (Sublime Text), `⌃ ⇧ →` (Sublime Text (macOS)), `Alt+Shift+Right` (Visual Studio), `Alt+Shift+Right` (Visual Studio (macOS)), `Ctrl+Shift+Right` (TextMate), `Ctrl+Alt+Page Down` (NetBeans), `Ctrl+Alt+Shift+Left` (Eclipse), `Alt+Shift+Right` (Eclipse (macOS))  | Navigate to the previous/next screen in the definition popup after using hyperlinks in the definition.    > **Note:** > On a macOS computer, you > > can also use the three-finger right-to-left and left-to-right swipe gestures.     |
| ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.edit.svg) | `F4` (Windows), `⌘ ↓` (macOS), `F4` (IntelliJ IDEA Classic (macOS)), `F4` (macOS System Shortcuts), `F4` (XWin), `F4` (GNOME), `F4` (KDE), `F4` (Emacs), `F4` (Sublime Text), `F4` (Sublime Text (macOS)), `F4` (Visual Studio), `⌘ ↓` (Visual Studio (macOS)), `F4` (TextMate), `F4` (NetBeans), `F12` (Eclipse), `F3` (Eclipse (macOS)) | Open the source code of the definition for editing, and close the quick definition lookup window.                    |
| ![View the definition source code](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.preview.svg) | `Ctrl+Enter` (Windows), `⌘ ⏎` (macOS), `⌘ ⏎` (IntelliJ IDEA Classic (macOS)), `⌘ ⏎` (macOS System Shortcuts), `Ctrl+Enter` (XWin), `Ctrl+Enter` (GNOME), `Ctrl+Enter` (KDE), `Ctrl+Enter` (Emacs), `Ctrl+Enter` (Sublime Text), `⌘ ⏎` (Sublime Text (macOS)), `Ctrl+Enter` (Visual Studio), `⌘ ⏎` (Visual Studio (macOS)), `Meta+Enter` (TextMate), `Ctrl+Enter` (NetBeans), `Ctrl+Enter` (Eclipse), `⌘ ⏎` (Eclipse (macOS)) | Open the source code of the definition, and preserve the quick definition lookup window opened.   |

## See also

### Procedures

### Reference

