Highlighting Usages
On this page:
- Introduction
- Configuring automatic highlighting
- Highlighting usages in the current file
- Navigating among usages
- Removing highlighting
Introduction
The search command (Ctrl+Shift+F7) makes it possible to visualize usages of a symbol in the current file.
All found usages of a symbol in the current file are highlighted and color-coded, as defined in the Colors and Fonts settings page, to represent read or write access to the symbol. In addition to the highlights of occurrences in text, the stripes of the same colors appear in the marker bar, accompanied with tooltips.
The behavior of usage highlighting is configurable: you can make PhpStorm show usages of a symbol at caret automatically, or invoke it with a command.
Configuring automatic highlighting
To configure highlight usages behavior
- Open the Settings/Preferences dialog.
- In the Editor page of the IDE Settings, select the check box Highlight usages of element at caret to enable automatic usage highlighting.
Highlighting usages in the current file
To highlight usages of a symbol in the current file
Navigating among usages
To navigate among usages, do one of the following
- Click on a stripe in the marker bar to navigate to the respective usage location.
- Use F3 and Shift+F3 keyboard shortcuts, to navigate to the next and previous usages respectively.
Removing highlighting
To remove highlighting of usages
- Press Escape.
See Also
Reference:
Last modified: 24 November 2016