amira
amira

Reputation: 434

Is there a way to filter out ButterKnife ViewBinding files from "CMD+SHIFT+O" (go to file) search results?

I tend to search project files in Android Studio with CMD+SHIFT+O shortcut because it gives all project related files instead of Double Shift searching through all existing files in the SDK (as far as I know).

However, I haven't found a way to filter out ViewBinding files that ButterKnife creates. The thing is, ViewBinding files always appear on top of the file I am looking for. enter image description here

Is there a way to exclude them from cmd+shift+o search result?

Upvotes: 1

Views: 82

Answers (1)

Nanda Z
Nanda Z

Reputation: 1876

You can add a scope to filter searches like this. Open Find path Create your custom scope Type this snippet to Pattern to avoid generatedJava appears from find path

!file:*intermediates*/&&!file:*generated*/&&!lib:*..*

I think it should be work, coz it works for me... enter image description here

Upvotes: 0

Related Questions