如何在 IntelliJ IDEA 中每次保存后自动优化导入 [英] How to optimize imports automatically after each save in IntelliJ IDEA

查看:27
本文介绍了如何在 IntelliJ IDEA 中每次保存后自动优化导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解如何在每次保存后自动优化导入,就像我们使用 Eclipse(保存操作)一样.

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

推荐答案

IntelliJ IDEA 在Settings 中提供了实时优化导入 的选项 |编辑器 |一般 |提交项目对话框中的Auto ImportOptimize imports选项.

IntelliJ IDEA offers an option to Optimize imports on the fly in Settings | Editor | General | Auto Import and Optimize imports option in the Commit Project dialog.

这篇关于如何在 IntelliJ IDEA 中每次保存后自动优化导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆