Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我倾向于使用CMD+SHIFT+O快捷方式在 Android Studio 中搜索项目文件,因为它提供了所有项目相关文件,而不是Double Shift搜索 SDK 中的所有现有文件(据我所知)。
但是,我还没有找到过滤掉 ButterKnife 创建的 ViewBinding 文件的方法。问题是,ViewBinding文件总是出现在我要查找的文件的顶部。
有没有办法将它们从cmd+shift+o搜索结果中排除?
您可以添加一个范围来过滤这样的搜索。 将此代码段键入到 Pattern 以避免生成的Java 出现在查找路径中
!file:*intermediates*/&&!file:*generated*/&&!lib:*..*
我认为它应该工作,因为它对我有用......