PyCharm 2024.1 Help

Find usages in a project

PyCharm provides different search options depending on whether you are searching for usages of a class, method, field, parameter, or throw statements, and extends a 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.

Finding 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 a symbol in the Model Dependency diagram.

  2. Do one of the following:

    • Go to Edit | Find Usages

    • Choose Find Usages from the context menu

    • Press Alt+F7.

  3. In the Find tool window, explore search results. Use the Group by usage type button (the Group by usage type button) to group search results by type of usage.

    Found Usages in the Find tool window

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

Last modified: 26 May 2024