remove unused imports intellij settings code example
Example: intellij remove unused imports
For some older versions it is apparently Ctrl + Option + O . 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.