在Android Studio中方法自动完成后禁用打开括号 [英] Disable opening parenthesis after method autocomplete in Android Studio
问题描述
我正在使用Android Studio(基于IDEA,而不是Eclipse),每次使用 Tab 从自动完成弹出窗口中选择一种方法时,它都会自动插入左括号.我已禁用 Settings> Editor>常规>智能键>插入对括号
.
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.
步骤:
- 打开Java代码(在我的示例中为Android活动)
- 移动到有效的代码区域(例如,在onCreate内部)
- 键入
super.onC
并点击 Tab
预期:编辑器包含 super.onCreate
实际:编辑器包含 super.onCreate(
如何禁用左括号?这会破坏我的常规输入流程,因为我总是以一个额外的结尾(.更糟糕的是,当我自动完成无参数方法时,它会同时插入两个().
How do I disable that opening parenthesis? It's ruining my normal typing flow because I always end up with an extra (. Even worse when I autocomplete a parameterless method in that it inserts both ().
推荐答案
我认为这不可能.
您唯一可以做的是:
禁用括号,大括号等补全.
Disable bracket, brace, etc completion.
或禁用代码完成功能.
这篇关于在Android Studio中方法自动完成后禁用打开括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!