How do I get rid of unused imports in IntelliJ?

Như Quỳnh

New member
How do I get rid of unused imports in IntelliJ?
Answer
Choose the project/module you want to remove unused import from in Project view. Then from Code menu choose Optimize imports and confirm with Run. The imports will be cleaned in whole project/module.
CTRL + ALT + O —> to remove the unused imports in windows.
 

Tìm kiếm

Back
Top