Definition and type definition
In DataGrip, you can see where and how symbols, such as variables, arguments, or functions are defined in your project. For this purpose, the IDE features the Quick Definition popup.
![Quick Definition popup Quick Definition popup](https://resources.jetbrains.com/help/img/idea/2024.3/db_quickDefinitionLookup.png)
Place the caret at a symbol in the editor and press CtrlShift0I (or click View | Quick Definition in the main menu).
Alternatively, with the Ctrl key pressed, hover over any symbol. DataGrip displays the symbol as a link and shows its definition in a tooltip. Click this link to jump to the definition of the symbol.
You can open a definition in the Find tool window. To do so, click the icon in the top-right corner of the popup and click
Open in Find Tool Window.
To open the source code of the definition for editing and close the popup, click the icon and then click
Edit Source (F4).
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 |
---|---|---|
| AltShift0←, AltShift0→ | Navigate to the previous/next screen in the definition popup after using hyperlinks in the definition.
|
F4 | Open the source code of the definition for editing, and close the quick definition lookup window. | |
CtrlEnter | Open the source code of the definition, and preserve the quick definition lookup window opened. |
Thanks for your feedback!