PhpStorm 8.0.2 Web Help

Viewing Definition

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

On this page:

Examples

For markup languages, PhpStorm retrieves definitions of symbols from the specified DTD or schema. For details, see Markup Languages and StyleSheets.

In the JavaScript or PHP context, PhpStorm retrieves the definition of a symbol from the source code and displays the name of the file where the symbol is defined:

web_ide_quick_definition_lookup.png

To view definition of a symbol at caret, do one of the following

  • On the main menu, choose View | Quick Definition .
  • Press Ctrl+Shift+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.

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+Left
Shift+Alt+Right
Navigate to the previous/next screen in the definition pop-up window after using hyperlinks in the definition.
edit.png F4 Open the source code of the definition for editing, and close the quick definition lookup window. If PhpStorm 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+Enter Open the source code of the definition, and preserve the quick definition lookup window opened.
show_details1 Alt+F7 Open the usages of the detected definition across the project in the Find tool window. If PhpStorm 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

Last modified: 10 December 2014