How do I get Android Studio to stop returning generated code in search results?

前端 未结 3 2028
天涯浪人
天涯浪人 2020-12-05 09:18

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

相关标签:
3条回答
  • 2020-12-05 09:38

    For me, just to add to the answer, the scope !file:*intermediates*/&&!file:*generated*/&&!file:*build*/&&!lib:*..* worked even better!

    0 讨论(0)
  • 2020-12-05 09:44

    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.

    0 讨论(0)
  • 2020-12-05 09:59

    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.

    0 讨论(0)
提交回复
热议问题