IntelliJ IDEA 2018.1 Help

Viewing Definition

On this page:

Quick Definition Lookup shows you where and how your project symbols (tags, classes, methods/functions, fields, etc) are defined.

Definitions are shown in the Documentation pop-up window or in the Documentation tool window.

quickDefinitionLookup

For markup languages, IntelliJ IDEA retrieves definitions of symbols from the specified DTD or schema. For details, see HTML and XML.

ws_quick_definition_lookup_html.png

To view the definition of a symbol at caret

  • Press Ctrl+Shift+I or choose View | Quick Definition.

To open the definition in the Documentation tool window

  • Move your mouse pointer within the tooltip and click pin in the upper-right corner.

To jump to the definition of the symbol

  • When in the hover mode, just click the link into which the symbols has turned.
  • To open the source code of the definition for editing and close the quick definition lookup window, click edit.png on the toolbar or press F4.
  • To open the definition without closing the quick definition lookup window, click showDetails or press Ctrl+Enter.

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.

IconKeyboard shortcutAction
arrowBack.png arrowForward.png Shift+Alt+Left
Shift+Alt+Right
Navigate to the previous/next screen in the definition pop-up window after using hyperlinks in the definition.
editF4Open the source code of the definition for editing, and close the quick definition lookup window. If IntelliJ IDEA 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.
showDetailsCtrl+EnterOpen the source code of the definition, and preserve the quick definition lookup window opened.

If IntelliJ IDEA 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.

Last modified: 24 July 2018

See Also