【发布时间】:2012-04-10 00:39:56
【问题描述】:
例如,如果我输入“整数”。然后按 CTRL+SPACE,现在从列表中选择“valueOf”,Eclipse 总是在函数名称后添加“()”。这对我来说真的很烦人,因为我经常有一个已经存在的语句并且想在它周围包装一个函数。
示例: 我要改变
String x = "hello world";
到
String x = StringManipulator.uppercase("hello world");
如果我写
String x = StringManipulator."hello world";
在点字符上按 CTRL+SPACE,它会插入
String x = StringManipulator.uppercase()"hello world";
有没有办法解决这个问题?我不需要自动关闭括号,但只是阻止 Eclipse 自动插入它们会对我很有帮助。
【问题讨论】:
-
这个问题的点赞数怎么可能少于 100?
标签: eclipse parentheses