Search code examples
phpstorm

Disabling the "Non-code usages" in PHPStorm "Find usages"


I'm using the great Find Usages feature in PHPStorm on a daily basis, and search results fall under one of these two categories:

  • Non-code usages
  • Found usages

I'm almost never interested in the non-code usages. Furthermore, when I'm looking for usages of a method called get() or set(), it becomes painfully slow as the non-code usages show thousands of results.

Is it possible to disable the non-code usages, and only return actual code usages?


Solution

  • Click on a function name

    Click on a function name


    Go to Edit, Find, Find Usages Settings...

    Edit | Find | Find Usage Settings


    Uncheck Search for text occurrences, and click Find

    Uncheck Search for text occurrences


    While this is not really a global setting, the setting is remembered after the search, and the next time you'll right click to Find Usages it will be off by default.

    Credits to LazyOne for the answer.