问题描述
我看到很多有关匹配括号的文章,但是对括号的热爱不多.在Eclipse中,如何使匹配的括号突出显示?我正在使用Java和Groovy.
I see plenty of posts about matching brackets, however not so much love for parenthesis. In Eclipse how do I get matching parenthesis to highlight? I'm working in java and groovy.
推荐答案
在eclipse内的Java编辑器中打开任何Java文件.打开或关闭括号后,请插入插入符号.您可以看到对应的匹配括号突出显示,但是很遗憾,默认的突出显示背景和前景色不是很好.
Open any Java file in Java editor inside eclipse. Put caret just after opening or closing parenthesis. You can see the corresponding matching parenthesis highlighted, but unfortunately the default highlight background and foreground colors are not good.
因此,请在 Windows>中更改此颜色.偏好设置>Java>编辑器>外观颜色选项>匹配括号突出显示
检查此 Bracketeer插件,该插件具有许多其他功能显示匹配的括号.但是它仅适用于C/C ++或Java代码,不适用于常规代码.
Check this Bracketeer plugin which has many other features along with showing matching brackets. But it works for only C/C++ or Java code not for groovy.
这篇关于Eclipse高亮显示匹配括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!