如果我例如输入整数。然后按CTRL + SPACE,现在从列表中选择valueOf,Eclipse总是在函数名后添加()。这真的很烦人,因为我经常有一个已经存在的声明,想要围绕它来包装一个功能。
If I for example type "Integer." and then hit CTRL+SPACE, and now choose "valueOf" from the list, Eclipse always adds "()" after the function name. That is really annoying to me because often times I have an already existing statement and want to wrap a function around it.
示例: 我要更改
Example: I want to change
String x = "hello world";至
String x = StringManipulator.uppercase("hello world");如果我写
String x = StringManipulator."hello world";并点击CTRL + SPACE点号,插入
and hit CTRL+SPACE on the dot character, it inserts
String x = StringManipulator.uppercase()"hello world";有没有办法解决这个问题?我不需要自动的父母关闭,只是停止Eclipse自动插入,这将有助于我。
Is there any way to fix this behaviour? I don't need automatical parenthese-closing but just stopping Eclipse from autoinserting them would help me very much.
推荐答案转到搜索框中键入parent - >取消选中您不喜欢的选项。那就是那个乱七八糟的搜索(eclipse偏好)。
Go to Preferences in eclipse -> into search box type: "parent" -> uncheck options that you don't like. That's what search is for in that mess (eclipse preferences).
更多推荐
如何阻止Eclipse自动添加括号?
发布评论