我无法在 Eclipse 中输入花括号
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33904466/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
I can't type curly braces in Eclipse
提问by handris
I have been working with Java in an Eclipse IDE. I can type every single character just fine except for the '{' character. I need to resort to Ctrl+c and Ctrl+v every single time when I want to create a new block of {}.
我一直在 Eclipse IDE 中使用 Java。除了“{”字符外,我可以输入每个字符都很好。当我想创建一个新的 {} 块时,我每次都需要使用 Ctrl+c 和 Ctrl+v。
In the Window>Preferences>Editor>Typing Braces are on, and they autocorrect just fine after I manage to copy a {.
在“窗口”>“首选项”>“编辑器”>“打字括号”中,它们在我设法复制 {.
Outside eclipse, in a text editor, or even in this question, I can type { by hitting Atl Gr + B, so I am thinking the problem is inside Eclipse.
在 eclipse 之外,在文本编辑器中,甚至在这个问题中,我可以通过点击 Atl Gr + B 来输入 {,所以我认为问题出在 Eclipse 内部。
Any help would be really appreciated, this error is getting quite annoying.
任何帮助将不胜感激,这个错误变得非常烦人。
回答by Gábor Csikós
The problem is with the skip breakpoints option. After unbinding the Alt+B key command, try to unbind the Ctr+Alt+B (skip brakepoints).
问题在于跳过断点选项。解绑 Alt+B 键命令后,尝试解绑 Ctr+Alt+B(跳过刹车点)。
This solved my problem. If you try to type the "{" you can see the skip breakpoint option flashing.
这解决了我的问题。如果您尝试键入“{”,您可以看到跳过断点选项闪烁。
回答by user6838933
Go Windows-> Preferences type in search field 'binding' click on Keys, look up for Alt+B, click on it and then click Unbind Command.
转到 Windows-> 在搜索字段“绑定”中键入首选项,单击“键”,查找 Alt+B,单击它,然后单击“解除绑定命令”。
回答by rhozjan
Solution: Window → Perspective → Customize Perspective → Debug - → point on Skip All Breakpoints → Key bindings and change it form Ctrl+ Alt+ Bto Ctrl+ Alt+ M.
解决方案: Window → Perspective → Customize Perspective → Debug - → 指向 Skip All Breakpoints → Key bindings 并将其从Ctrl+ Alt+更改B为Ctrl+ Alt+ M。