How to delete all unused imports from current project in Intellij Idea
问题 I have been using Intellij Idea for quite some time now. I have a few questions though. Is there a way to delete all unused imports from all files in the current project ? I know that I can choose menu item Code > Optimize Imports ( CTRL + ALT + O ) to organize imports in individual files but since the application that I am working on has hundreds of files, this process does not make any sense. If there is no way of doing this, can I create a macro for this? If so, how do I do it? 回答1: Click