禁用 Eclipse 自动完成但保持自动激活
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7935993/
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
Disabling Eclipse autocomplete but keeping autoactivation
提问by oldSkool
I use eclipse for Java development. I like the auto-activation feature because I can add all the letters and numbers so I can see class members while I'm typing; making it behave similarly to visual studio. If I don't add all of the letters and numbers to the auto-activation list, it will only pop up with class information when I'm typing the first letter after the '.' delimiter, and then it disappears.
我使用 Eclipse 进行 Java 开发。我喜欢自动激活功能,因为我可以添加所有字母和数字,这样我就可以在打字时看到班级成员;使其行为类似于visual studio。如果我没有将所有字母和数字添加到自动激活列表中,那么它只会在我输入“.”之后的第一个字母时弹出类信息。分隔符,然后它就会消失。
The real problem arises when I'm typing in a variable name or something else. As soon as I hit space, the autocomplete types a bunch of crap following what I've typed in attempt to complete it. It's driving me crazy. Any way to turn this off? Thanks
当我输入变量名或其他东西时,真正的问题就出现了。我一点击空格,自动完成功能就会在我输入的内容之后输入一堆废话来尝试完成它。这让我疯狂。有什么办法可以关掉这个?谢谢
采纳答案by G_H
Open menu Window, then Preferences. Follow path Java -> Editor -> Content assist. Now mess around with the settings to find your ideal setup. I believe what you'll want is to deactivate "Insert single proposals automatically".
打开菜单窗口,然后首选项。按照路径 Java -> 编辑器 -> 内容辅助。现在处理设置以找到理想的设置。我相信您想要的是停用“自动插入单个提案”。
回答by ChrisP
The checkbox you have to check is: "Disable insertion triggers exept 'Enter'"
您必须检查的复选框是:“禁用插入触发器,除非 'Enter'”
(under Java -> Editor -> Content assist)
(在Java -> 编辑器 -> 内容辅助下)
I'm on Eclipse 2018-12 and C_H's answer had no effect on the behavior:
我在 Eclipse 2018-12 上,C_H 的回答对行为没有影响:
I believe what you'll want is to deactivate "Insert single proposals automatically"
我相信您想要的是停用“自动插入单个提案”


