Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: make curly bracket more noticeable

Tags:

java

eclipse

I am using Eclipse. You see this ending curly bracket next to catch(FileNotFoundException fne) {:

enter image description here

How do I make it more noticeable when I select on starting curly brackets so I can clearly see where it ends?

like image 702
test Avatar asked May 08 '11 03:05

test


People also ask

How do you change curly braces in eclipse?

The simplest and global way: Go to Window -> Preferences. Then in search put: "brace". Select -> Java -> Code Style-> Formatter After opening new window go to brace tab and change it as you prefer.

How do you check curly braces in eclipse?

To see a bracket's pair, click to the right of the bracket. Its matching pair will be highlighted. To jump to the matching bracket, press Ctrl+Shift+P.

Should curly braces appear on their own line?

2.7 Curly BracesAn opening curly brace should never go on its own line and should always be followed by a new line. A closing curly brace should always go on its own line, unless it's followed by else. Always indent the code, 2 spaces, inside curly braces.


1 Answers

From Window > Preferences, go to Java > Editor and Select Matching brackets highlight and pick a color that will stand out and also make sure Highlight matching brackets is checked :)

enter image description here

I changed mine to red and this is what it looks like now.(and I did not have to restart eclipse)

enter image description here

like image 72
Bala R Avatar answered Sep 26 '22 22:09

Bala R