MyEclipse 10 自动完成功能不起作用

发布于 2024-12-24 02:47:04 字数 252 浏览 1 评论 0原文

我最近使用了 MyEclipse 10,但自动完成功能已停止工作,我不知道为什么。

现在奇怪的是,它对于 JSP 项目工作得很好。在我的工作中,我们有一个使用 JSP 创建并在 TomCat 服务器上运行的在线 GUI。但在任何其他项目中,自动完成功能都不起作用。没有一个命令会弹出自动完成功能。如果我尝试例如 System.并尝试点击控制空间,它说没有可用的完成。以前有人遇到过这个问题吗?如果我到底该如何修复它,会使编程变得相当困难:P

提前感谢您的帮助

I have recently got MyEclipse 10 in work and the autocomplete feature has stopped working and I have no idea why.

Now the weird thing is, it works fine for the JSP project. In my work we have a online GUI which is created using JSP and runs on the TomCat server. But in any other project, the auto completions don't work. Not a single command will bring up the auto completion. If I try for example System. and try hitting control space, it says no completions for available. Has anyone had this problem before? And if how how on earth do I fix it, makes it rather difficult to program :P

Thanks in advance for any help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

东风软 2024-12-31 02:47:04

通过转至 Java->Editor->Content Assist->Advanced 打开自动完成功能。确保选择 Java 建议。

Eclipse 窗口首选项

Turn on Autocompletion by going to Java->Editor->Content Assist->Advanced. Ensure that Java Proposals is selected.

Eclipse Window Preferences

吻泪 2024-12-31 02:47:04

MyEclipse 和 Eclipse 中的 Java 自动完成功能有时会花费很长时间才能显示建议;这可能是由多种原因引起的,从调用自动完成时系统负载严重到出现故障或异常大的类路径。

由于这里的延迟会锁定您的 UI,Eclipse 将检测到这一点,中断自动完成请求并通过对话框通知您完成时间过长。它还为您提供了关闭自动完成处理器的选项,该处理器花费了太长时间;如果您不注意,您可能已通过此对话框将其关闭(在我早期的 Eclispe 时代,这种情况发生过几次)。

这简单地解释了为什么它可能突然关闭,您需要使用上面 Hippo 的建议将其重新打开。

Java auto-complete in MyEclipse and Eclipse will sometimes take too long to show proposals; this could be caused by a variety of reasons ranging from a system under severe load at the point at which the auto-complete was invoked to a glitch or an unusually large classpath.

Since a delay here locks your UI, Eclipse will detect this, break the auto-complete request and inform you that it took too long to complete via a dialog. It also gives you the option to turn off the auto-complete processor which took too long; if you weren't paying attention, you may have turned it off through this dialog (this happened to me a few times in my early Eclispe days).

This simply explains why it may have suddenly turned off, you would need to turn it back on using Hippo's suggestion above.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文