How to remove unused imports in Intellij IDEA on commit?

前端 未结 9 1646
遥遥无期
遥遥无期 2020-12-23 02:57

Is there a way to remove unused imports in Intellij IDEA on commit?

It is not very optimal to do it manually, CTRL + ALT + O helps b

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 02:59

    In Mac IntelliJ IDEA, the command is Cmd + Option + O

    For some older versions it is apparently Ctrl + Option + O.

    (Letter O not Zero 0) on the latest version 2019.x

提交回复
热议问题