如何阻止Eclipse自动添加括号?

编程入门 行业动态 更新时间:2024-10-26 17:28:55
本文介绍了如何阻止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.

推荐答案

转到搜索框中键入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自动添加括号?

本文发布于:2023-11-16 16:03:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1605764.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:括号   Eclipse

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!