Viewing Usages of a Symbol
Using the Show Usages function, you can bring up a list of the usages of a symbol across the whole project. So doing, the pop-up window with the list of usages of a symbol features a toolbar with the following buttons:
|Ctrl+F||Merge usages of the symbol from the same line.|
|Ctrl+R||Show read access to the symbol.|
|Ctrl+W||Show write access to the symbol.|
|Ctrl+I||Show usages in the import statements.|
|Ctrl+M||If this button is pressed, the found usages show under the corresponding method nodes.|
|Alt+F7||Show search results in the Find Usages tool window.|
|Ctrl+Shift+Alt+F7||Open the Find Usages dialog box for the selected symbol where you can change the search options.|
To view the usages of a symbol across the project
- Place the caret at the desired symbol in the editor.
- On the main menu, choose , or press Ctrl+Alt+F7. PhpStorm displays the Show Usages pop-up window which lists all occurrences of the symbol at caret.
- Examine and analyze the detected occurrences of the symbol:
- If necessary, customize the search options in the search options dialog box. To invoke the dialog box, do one of the following:
Last modified: 28 November 2017