How to delete all unused imports at once?.
已回答
I find myself often deleting unused imports manually, you know, the ones grayed out, at least in the Darcula theme.
Is there any command to delete them all at once?.
请先登录再写评论。
Help | Find Action (remember its shhortcut BTW!) and type 'Optimize imports'. The action will be found for you - remember its shortcut as well!
Other action is 'Reformat Code' - it can both optimize imports an fix formatting for the whole file.
Thanks, worked perfectly.
You could use `control + option + O` form make