不知道小伙伴有没有遇到导入后未使用,导入的内容是灰色(sai)滴。有的小伙伴感觉难受啊。能不能解决呢?不能每次都手动删除吧,自动导入引用挺爽的,有没有自动移除未使用导入呢?
问题就是这样滴:
解决方法如下:
在 File | Settings | Editor | General | Auto Import 中,将 Optimize imports on the fly (for current project) 勾选上就可以啦~
在 File | Settings | Editor | General | Auto Import 中,将 Optimize imports on the fly (for current project) 勾选上就可以啦~