最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to disable auto import in Eclipse IDE? - Stack Overflow

programmeradmin4浏览0评论

I'm experiencing an issue with auto-imports in Eclipse IDE. When I write code like this:

Class object = new Class();
object.someMethod();

and I use code completion (by pressing . after the object and selecting a method from the list), the IDE automatically adds the necessary import statement at the top of the file. However, I don’t want this behavior—I prefer to add imports manually.

I’ve looked through the IDE settings but couldn’t find an option to disable auto-import specifically for code completion. Is there a way to turn this feature off?

发布评论

评论列表(0)

  1. 暂无评论