问题描述
几年前,我设立了我的第一个Eclipse IDE环境,开始学习这门语言。我记得,这是一些Luna构建,它有一个特定的,真正令人上瘾的代码完成,这了解跳过一些字母...像p l n会找到println。现在我安装了Mars版本(Luna的一个已经和过去的硬盘一起走了),找不到这个选项。一些代码完成工作,但它只看当前的字符。
有人可以告诉我在哪里看。
了解如何在代码中跳过一些字母,例如,如果我有:
System.out。在$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $
$ b $ p $我按 + 我会看到所有的 println
选项:
如果不适用于您,我怀疑您没有href =http://www.eclipse.org/recommenders/ =nofollow noreferrer>代码推荐者安装或启用。默认情况下,
如果没有安装,请从火星更新站点安装: p>
- 从帮助菜单中,选择安装新软件
- 选择使用:为火星 -
- 完成向导,重新启动,检查设置以及离开。
A few years ago i set up my first Eclipse IDE env at work to begin studying the language. As i remember, it was some Luna build and it had a specific and really addictive code completion, which understood skipping some letters... like "p l n" would find "println".
Now i'w installed Mars build(the Luna's one has gone with the past harddrive), and cant find this option. Some code completion works, but it looks only by the current character.
Could someone tell me where to look.
解决方案 Eclipse does understand skipping some letters in code complete, for example, if I have:
System.out.pln
with my cursor after the n
and I press + I am presented with all the println
choices:
If it is not working for you I suspect that you don't have Code Recommenders installed or enabled. It should come by default with Eclipse IDE for Java Developers.
To check to see if it is installed and enabled, in Preferences, choose Java -> Editor -> Code Assist -> Advanced and see if Java Proposals (Code Recommenders) is listed and checked:
If it is not installed, install it from the Mars update site:
- From Help menu, choose Install New Software
- Choose Work With: as Mars - http://download.eclipse.org/releases/mars . from the drop-down list.
- Choose Code Recommenders for Java Developers from the list. You may need to uncheck Group items by category to find it.
- Complete the wizard, restart, check setting about and away you go.
这篇关于Java代码在Eclipse IDE中完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!