How to optimize imports automatically after each save in IntelliJ IDEA

前端 未结 4 1632
孤街浪徒
孤街浪徒 2020-12-13 23:13

I want to learn how can I automatically optimize imports after each save as we do Eclipse(save actions).

4条回答
  •  悲&欢浪女
    2020-12-13 23:31

    In version 'Ultimate 2016.2' it is:

    File > Other Settings > Default Settings > Auto Import > Optimize imports on the fly

提交回复
热议问题