


build, /generated) from Android Studio and prevent them from being indexed. If you want to go the nuclear option, Preferences -> Editor -> File Types -> Ignored Files and Folders will let you hide entire directories (e.g. Use scopes: /PC2D1LJyDA- Adam Bennett June 17, 2022 Preferences -> Appearance & Behaviour -> Scopes -> + -> local -> Use whatever pattern you need, for example !file:*intermediates*/&!file:*generated*/&!file:R.java. If you work in a project with lots of generated code (e.g.: you use Dagger), you can exclude generated files from searches using Scopes: Based on a recent discussion on Twitter: a list of things that you can do in Android Studio which can make your life much easier.
