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

前端 未结 3 2029
天涯浪人
天涯浪人 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: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.

提交回复
热议问题