如何告诉 Eclipse 自动显示内容辅助?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19449175/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:56:07  来源:igfitidea点击:

How to tell Eclipse to show content assist automatically?

eclipseautocompletecontent-assist

提问by Volodymyr Levytskyi

When I am typing Eclipse does not automatically shows content assist, but only after I press Ctrl+ Space. I used to type class name and Eclipse gave good proposals automatically.
But now it is not working.

当我输入 Eclipse 时,它​​不会自动显示内容辅助,而是在我按下Ctrl+后才显示Space。我曾经输入类名,Eclipse 会自动给出好的建议。
但现在它不工作了。

回答by Elye M.

Go to, Window >> Preferences >> Java >> Editor >> Content Assist >> Auto activation triggers for Java, and enter .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ, this will trigger the auto activation for class names, methods, etc.

转到,Window >> Preferences >> Java >> Editor >> Content Assist >> Auto activation triggers for Java,然后输入.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,这将触发类名、方法等的自动激活。

回答by greg-449

Look in Preferences in Java / Editor / Content Assist and check the Enable auto activationcheck box is ticked and has a sensible delay.

查看 Java / Editor / Content Assist 中的 Preferences 并检查Enable auto activation复选框是否被勾选并且有一个合理的延迟。