RubyMine 7.0.0 Web Help

Quick Definition Lookup makes it possible to view definition of a symbol (tag, class, method/function, field, etc.) in a pop-up window.

ruby_quickDefinitionLookup.png

On this page:

To view definition of a symbol at caret, do one of the following
  • On the main menu, choose View | Quick Definition.
  • Press Ctrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+IShift+Meta+IAlt Space or Command YShift Command IAlt Space or Command YShift Command I.
  • Keeping the Ctrl key pressed, point with your mouse cursor to the symbol of interest, so that it turns to a hyperlink, with the definition of the symbol displayed in a tooltip. Clicking this hyperlink results in opening the respective definition page in the editor.
    5.0+

    Note

    • Quick definition tooltip shows hyperlinks to the symbols involved.

      ruby_quickDocumentationTooltip.png

    • 5.0+ When you move your mouse pointer within the tooltip, a pin button pin appears. If you pin the tooltip, documentation for the symbol at caret is displayed in the Documentation Tool Window.

Toolbar of the Quick Definition Lookup

Use the icons on the toolbar of the pop-up window to navigate to the source code of the definition and view its usages.

Icon Keyboard shortcut Action
arrowBack.png arrowForward.png Shift+Alt+LeftShift+Alt+LeftShift+Alt+LeftShift+Alt+LeftShift+Alt+LeftShift+Alt+LeftCtrl+Alt+Page UpCtrl+Shift+Alt+RightCtrl+Shift+LeftControl Shift LeftControl Shift LeftControl Shift LeftShift Alt Command Open Bracket
Shift+Alt+RightShift+Alt+RightShift+Alt+RightShift+Alt+RightShift+Alt+RightShift+Alt+RightCtrl+Alt+Page DownCtrl+Shift+Alt+LeftCtrl+Shift+RightControl Shift RightControl Shift RightControl Shift RightShift Alt Command Close Bracket
Navigate to the previous/next screen in the definition pop-up window after using hyperlinks in the definition.

Note

On a OS X computer, you can also use the three-finger right-to-left and left-to-right swipe gestures.

edit.png F4F4F4F4F4F4F4F12 or Ctrl+Shift+EF4Command Down or F4F4F3F4 Open the source code of the definition for editing, and close the quick definition lookup window. If RubyMine cannot find the appropriate sources in your project, it will try to decompile the code. In this case the JetBrains Decompiler dialog with legal information is displayed.
showDetails Ctrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterMeta+EnterCommand EnterCommand EnterCommand EnterCommand Enter Open the source code of the definition, and preserve the quick definition lookup window opened.
show_details1 Alt+F7Shift+Alt+7Shift+Alt+7Alt+F7Alt+F7 or Shift+Alt+SShift+Alt+F7Alt+F7Ctrl+GAlt+F7Alt F7Alt F7Shift Command GAlt F7 Open the usages of the detected definition across the project in the Find tool window. If RubyMine cannot find the appropriate sources in your project, it will try to decompile the code. In this case the JetBrains Decompiler dialog with legal information is displayed.

See Also

Procedures:

Reference:

Web Resources: