如何从Eclipse中删除未使用的导入 [英] How to remove unused imports from Eclipse
本文介绍了如何从Eclipse中删除未使用的导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
有没有办法使用Eclipse IDE自动删除项目的所有未使用的导入(用警告标示)?只是找到了方法。右键单击所需的包,然后单击Source-> Organize Imports。
Is there any way to automatically remove all unused imports (signaled with a warning) of a project with Eclipse IDE?
解决方案
Just found the way. Right click on the desired package then Source->Organize Imports.
这篇关于如何从Eclipse中删除未使用的导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文