不知道小夥伴有沒有遇到導入後未使用,導入的內容是灰色(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) 勾選上就可以啦~