Reputation: 6332
In Java source files, when I select a class or a method, then click the right button of mouse, in the pop up context menu, and run Find Usages
, the files that use the class or methods are searched out.
But I would like to exclude certain files (e.g. JUnit test files) from the search results.
Where could I configure this?
Upvotes: 1
Views: 1262
Reputation: 47865
From the docs; you can confgure the Find Usages
scope by clicking on the tools icon in the top left hand corner of the Find Usages
results.
Here are some screenshots:
...
next to the Scope
field) to create a Scope
and define it like so (in this examples I have included production classes and excluded test classes):Find Usages
dialog:Notes:
Project Production Files
from the Scope
dropdownUpvotes: 4