Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

phpstorm

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?

like image 273
BenMorel Avatar asked Jul 12 '13 14:07

BenMorel


1 Answers

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.

like image 168
BenMorel Avatar answered Nov 15 '22 07:11

BenMorel