如何防止IntelliJ IDEA删除未使用的包? [英] How to prevent IntelliJ IDEA from deleting unused packages?
本文介绍了如何防止IntelliJ IDEA删除未使用的包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用intelliJ,我的问题是当我开始将一些临时未使用的包导入我的类文件时,intellij会在一秒内删除这些行。
I'm working with intelliJ and my problem is when I start to import some temporary unused packages into my class file intellij delete those line within a second.
如何我可以关闭这个不太好的功能吗?
how can I turn off this not so nice feature?
推荐答案
禁用设置
| 编辑
| 一般
| 自动导入
| 动态优化导入。
Disable Settings
| Editor
| General
| Auto Import
| Optimize imports on the fly.
通常您不需要手动添加导入,IDEA会为您执行此操作。
Normally you don't need to add imports manually, IDEA does it for you.
这篇关于如何防止IntelliJ IDEA删除未使用的包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文