如何阻止Eclipse自动添加括号? [英] How to stop Eclipse from auto-adding parentheses?

查看:484
本文介绍了如何阻止Eclipse自动添加括号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我例如输入整数。然后按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.

推荐答案

转到<在eclipse>搜索框中键入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自动添加括号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆