真的很烦人。因为匕首2,我需要更多的时间来找一些课。
答案 0 :(得分:9)
如果您正在讨论生成的MembersInjector
和Factory
类:
MyClass_MembersInjector.java
MyClass_Factory.java
您可以通过将它们添加到File / Settings / Editor / FileTypes
中的忽略文件列表并添加 Ctr-N 或 Cmd-O 对话框来阻止它们出现适当的通配符Ignore files and folders
edittext:
*_MembersInjector.java; *_Factory.java;
将导致大多数生成的类被忽略:
<强>之前:强>
<强>后:强>
如果您甚至不想看到生成的组件,您甚至可以将Dagger*.java
添加到列表中(即使这对项目非常有用)。
<强>更新强>
如果您所说的不是自动导入/自动完成课程,则可以通过Settings / Editor / General / Auto Import
完成:
答案 1 :(得分:4)