Red M
Red M

Reputation: 2789

Hide auto-generated Hilt classes from showing in Find Usage search using Android Studio/Intellij

I have a bunch of auto generated Hilt class files showing when I try to find usage of a certain class (cmd + click in Mac). These classes are usually prefixed with Hilt + the class name requesting the hilt generation e.g: Hilt_LoginActivity

enter image description here

It's kind of annoying. How can I hide it from the find usage? Cheers

Upvotes: 5

Views: 1647

Answers (1)

Khaled Ahmed
Khaled Ahmed

Reputation: 156

I used an answer from an old similar question about dagger here

But instead of *_MembersInjector.java; *_Factory.java; add *_MembersInjector.java;*_HiltComponents_SingletonC.java;*_Factory.java;*Factory.java; in the ignored file types.

Upvotes: 6

Related Questions