Every time I use Search In Path
in Android Studio, I end up with generated code being returned as the first section of results.
I usually search for so
For me, just to add to the answer, the scope !file:*intermediates*/&&!file:*generated*/&&!file:*build*/&&!lib:*..*
worked even better!
The way I've been doing to ignore generated classes in advanced search is adding !file:*intermediates*/&&!file:*generated*/&&!lib:*..*
to a new Custom Scope, like this:
14-October-2015 Update: I have improved the pattern by also excluding the !lib:*..*
from the search. Thanks.
I've seen this in IntelliJ, haven't checked in Android Studio. But when you do find in path (via ctrl+shift+F) there's a "File name filter" section in the search popup which has a checkbox called "File masks" which you might be able to filter desired file types.