I am using Eclipse. You see this ending curly bracket next to catch(FileNotFoundException fne) {
:
How do I make it more noticeable when I select on starting curly brackets so I can clearly see where it ends?
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.
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.
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.
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 :)
I changed mine to red and this is what it looks like now.(and I did not have to restart eclipse)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With