I am using Android Studio (based on IDEA, not Eclipse) and every time I select a method from the autocomplete popup with Tab, it inserts the opening parenthesis automatically. I have Settings>Editor>General>Smart Keys>Insert pair bracket
disabled.
Steps:
- 打开 Java 代码(在我的实例中,是 Android 活动)
- 移动到有效的代码区域(例如,在 onCreate 内部)
- Type
super.onC
and hit Tab
预期:编辑器包含super.onCreate
实际:编辑器包含super.onCreate(
如何禁用该左括号?它破坏了我正常的输入流程,因为我总是会得到一个额外的 (。更糟糕的是,当我自动完成一个无参数方法时,它会插入两个 ()。
我认为这是不可能的。
你唯一能做的就是:
禁用括号、支撑等完成。
或者禁用代码完成。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)