PhpStorm 10.0.0 Help

Finding Usages in Project

PhpStorm provides different search options depending whether you are searching for usages of a class, method, field, parameter, or throw statements, and extends search for usages to the files in supported languages. For example, in CSS, XML and HTML files you can search for the usages of styles, classes, tags and attributes.

In the PHP context, PhpStorm also applies the Find Usages functionality to implemented and overridden methods. For example:

  1. Create an interface with several methods.
  2. Create an abstract class that implements this interface.
  3. Create classes that extend the abstract class and implement the methods required by the interface.
  4. From the interface, invoke Find Usages for a method.
As a result, all the usages of the method will be found in all the classes that implement the abstract class.

Explore search results in the Find tool window.

To find usages of a symbol in a project

  1. Select a symbol to find usages for. To do that, place the caret within the desired symbol in the editor, or click the symbol in the Project tool window. You can also select symbol in the
  2. Do one of the following:
    • On the main menu, choose Edit | Find | Find Usages
    • Choose Find Usages on the context menu
    • Press Alt+F7.
  3. In the Find tool window, explore search results. Use the commonfilter button to represent search results in meaningful groups by type of usage.

While analyzing the search results, you can at any time open the search options dialog box by clicking click settings1 in the Find tool window or by pressing Ctrl+Shift+Alt+F7.

See Also

Last modified: 23 November 2015