Is it possible to get IntelliJ to list unused impo...
# intellij
k
Is it possible to get IntelliJ to list unused imports in the whole project? I've got
Settings -> Inspections -> Kotlin -> Unused import directive
set to "Warning", but when I build the project I don't see any unused imports listed. I can only see them by going to individual files in the editor and looking for greyed-out import statements. When looking at Java projects, on the other hand, I can see a list of used imports when I build.
m
You can use "Run Inspection By Name" on the entire project. Also if you commit using Intellij, you can select to auto cleanup imports and to run inspections on the files being committed.
🙏 1
226 Views