Eclipse自动完成更改变量名称 [英] Eclipse autocomplete change variable names
问题描述
只是一个愚蠢的问题,但很难搜索,因为有太多关于eclipse自动完成的主题,很难找到与我的问题相匹配的东西.
just a dumb question but its hard to search because there are so many topics about eclipse auto complete and its hard to find something matching to my problem.
所以有问题:
如果我写: "MyClass MyVarName",然后按空格,(添加"= new MyClass()") Eclipse会自动在变量名中添加:"MyClass MyVarName_ MyClass "或类似的东西...(只是不带下划线....stackoverflow不会标记为其他粗体...)
If i write : "MyClass MyVarName" and then hit space, (to add the " = new MyClass()") Eclipse automatically adds : "MyClass MyVarName_MyClass " or something like that to the variable-name..... (just without underscore.... stackoverflow just wont to mark as bold else...)
这真的很烦人,因为我导入了同事的日食配置...我真的不知道如何禁用....
That is really annoying, and because i imported the eclipse configuration of a co-worker... I really don't know how to disable....
预先感谢
//
这似乎与我输入"MyC"然后按空格键的效果相同,它也完成了"MyClass",而不仅仅是添加空格...就像按回车键一样.但我不想在空间上自动完成...
It seems to be the same effect as i type "MyC" and then press space, it also completes the "MyClass" and not add just the space... its like hitting enter. but i dont want to automplete on space...
我也没有在空间上找到自定义键选项,否则.... :(
i also didn't found a custom key option on space or else.... :(
推荐答案
窗口->首选项-> Java->编辑器->内容辅助->高级:在顶部列表框中,取消选中"Java Non-Type Proposals", "Java提案"和"Java提案(针对任务)".
Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced: In the top list box, uncheck "Java Non-Type Proposals", "Java Proposals" and "Java Proposals (Task-Focused)".
这篇关于Eclipse自动完成更改变量名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!