WestCoastProjects
WestCoastProjects

Reputation: 63022

How to omit/exclude files by extension in Intellij Show Usages

In the following screenshot we see the results of selecting

Edit|Find|Show Usages

while highlighting a class SparkAbstractBenchmark: Notice we do not get any useful information because the log files overwhelm the source files

enter image description here

So is there a way to exclude *.log from the search ?

Upvotes: 1

Views: 111

Answers (1)

Rafael R. S. Robles
Rafael R. S. Robles

Reputation: 897

You might consider upgrading to the IntelliJ latest version, since in the newer versions the results are organized in sections that you can collapse/expand, I guess it could be usefull for this case, look:

enter image description here

If this is not enough (which is the case) you have the option to configure your own Scopes, just go to the Find Usages Settings and click the elipses in the Scope section, then click the + symbol to add a new (local) scope, name it and you should see this window:

Find Usages Scope

Then in the Pattern: field you have to specify the pattern following the scope syntax which should be something like this:!file:*.log

After applying you should have this new Scope option available in the settings scopes list which you can use to filter the search.

Upvotes: 2

Related Questions