View usages of a symbol
Using the Show Usages function, you can bring up a list of symbol usages across the whole project.
Place the caret at the desired symbol in the editor.
From the main menu, choose Edit | Find | Show Usages, or press CtrlAltF7.
Examine and analyze the detected occurrences of a symbol:
Use the toolbar buttons to present search results in the desired way.
To jump from search results to a line of a source code, click the desired entry.
To close the list, press Esc.
If necessary, customize the search options in the search options dialog. To invoke the dialog, do one of the following:
In the Show Usages popup, click the Settings button
.
Press CtrlAltShiftF7.
The Find tool window displays a toolbar with the following buttons:
Icon | Tooltip | Description |
---|---|---|
Group by file structure | If this toggle is on, the found usages are shown under the corresponding method nodes. | |
Merge usages from the same line | Merge usages of the symbol from the same line. | |
Show read access | Show read access to the symbol. | |
Show write access | Show write access to the symbol. | |
Show import statements | Show usages in the import statements. | |
Settings.../CtrlAlt0S | Open the Find Usages dialog for the selected symbol where you can change the search options. |
tip
In addition to viewing usages, you can use this function for quick navigation.
Thanks for your feedback!