简体   繁体   English

在Eclipse中键入时自动显示大括号

[英]Auto real-time curly braces while typing in Eclipse

Automatic curly braces, the one typing aid I actually like while programming, doesn't work how I would like when using Eclipse: I want the matching brace to appear when I type the first one , not when I make a new line from an existing one. 自动花括号是我在编程时实际上喜欢的一种打字辅助工具,但不适用于使用Eclipse时的方式:我希望在输入第一个花括号时显示匹配的花括号,而不是在现有的新行中显示匹配的花括号一。

Is there a way to do this? 有没有办法做到这一点? I've looked throughout the preferences in Eclipse as well as various Google/Stack Overflow searches. 我在Eclipse以及各种Google / Stack Overflow搜索中浏览了所有首选项。

This option can be found under Window -> Preferences -> Java -> Editor -> Typing . Window -> Preferences -> Java -> Editor -> Typing下可以找到此选项。 Check the box entitled Braces . 选中标题为花Braces的框。

首选项窗口的屏幕截图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM