如何加快 Eclipse 提案的速度?他们很慢
我正在使用 Eclipse 进行 Java 开发。我喜欢 IDE 的一件事是,当它们建议我正在输入的方法名称时,这会提高我的工作效率并防止我拼写错误。
例如我的班级:
class User {
private String name;
private int id;
}
我想要输入 my_user.
时的建议(应该快速建议 name
和 id
)
但是 Eclipse 在这个 IDE 功能上非常慢这对我来说很重要。 (Google 通过 Internet 提供搜索建议的速度比 Eclipse 在我的本地工作区中提供搜索建议的速度更快)。有什么方法可以加快 Eclipse 提案的速度吗?
我尝试取消选中除“Java 提案”之外的所有提案:
Windows >首选项>爪哇>编辑>内容辅助>高级
我已在 Eclipse Galileo 3.5.2 和 Eclipse Helios 3.6.2 上尝试过此操作。 Galileo 比 Helios 稍快,但两者都太慢而没有什么用处。
I am using Eclipse for Java development. One thing that I like with IDE's are when they propose the method names that I'm typing, this improves my productivity and keeps me from misspellings.
E.g my class:
class User {
private String name;
private int id;
}
I want the proposals when typing my_user.
(should propose name
and id
quickly)
But Eclipse is very slow on this IDE feature which is important for me. (Google is doing search suggestions faster over Internet than Eclipse do proposals in my local workspace). Is there any way I can speed the Eclipse proposals up?
I have tried to uncheck all proposals except the "Java Proposals" from:
Windows > Preferences > Java > Editor > Content Assist > Advanced
I have tried this on both Eclipse Galileo 3.5.2 and Eclipse Helios 3.6.2. Galieleo is sligthly faster than Helios but both are too slow to be very useful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在Windows下>首选项->爪哇>内容辅助您可以设置“自动激活延迟”,这应该会加快完成窗口本身的显示速度。它可能无助于防止 Eclipse 缓慢地计算出其类型知识等。
Under Windows > Preferences -> Java > Content Assist you can set an "auto activation delay" which should speed up the display of the completion window itself. It might not help against Eclipse being slow in figuring out its type knowledge etc.
延迟决定 Eclipse 在显示建议之前等待的时间。如果您有一台功能强大的机器,您可以将其设置为
0
,就像您所做的那样。如果不方便一直显示它,将其设置为人类合理的时间会很有用:即您保持不按键 0.5 秒,然后 Eclipse 开始查找建议。Delay determines the time Eclipse waits before displaying suggestions. If you have a powerful machine you can set it to
0
, like you did. If it's inconvenient to show it all the time, it's useful to set it to a human-reasonable time: i.e. you stay without pressing keys for 0.5 seconds, and after that Eclipse starts finding suggestions.