IntelliJ IDEA 11.1 Web Help

8.0+

IntelliJ IDEA 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.

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 the symbol in the Commander, or in the UML Class diagram.

  2. Do one of the following:
    • On the main menu, choose Edit | Find | Find Usages
    • Choose Find Usages on the context menu
    • Press Alt+F7Alt F7.
  3. In the Find Usages dialog box, specify the search options, which depend on the type of the symbol you are searching for. Refer to the Find Usages dialogs for the detailed description of options.
  4. Specify how IntelliJ IDEA should behave if only one occurrence is found. If the option Skip results tab with one usage is checked, IntelliJ IDEA will scroll to the only encountered usage, rather than display it in the Find tool window.
  5. Specify the scope of search: select one of the pre-defined scopes from the drop-down list, or click the ellipsis button to define your custom scope, which can include external libraries and project files.
  6. Click Find button.
  7. In the Find tool window, explore search results. Use the commonfilter button to represent search results in meaningful groups by type of usage.


    Click thumbnail to view larger image.

    Click thumbnail to view larger image.

See Also

Concepts:

Reference:

Web Resources: