如何告诉 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
How to tell Eclipse to show content assist automatically?
提问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 activation
check box is ticked and has a sensible delay.
查看 Java / Editor / Content Assist 中的 Preferences 并检查Enable auto activation
复选框是否被勾选并且有一个合理的延迟。