Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Use background color instead of outline for matching bracket

Tags:

eclipse

Does anybody know how to set the background color of matching brackets to yellow instead of using a grey outline? I want to do this to be consistent with NetBeans IDE and EditPad Pro.

like image 813
700 Software Avatar asked Apr 14 '11 20:04

700 Software


2 Answers

Go to the Window menu, Preferences option, the select the language you want to change it for in the left column (e.g. C/C++, Java, etc), then choose Editor, and select the top option of the middle frame, change to whatever color you want. enter image description here

like image 83
jonsca Avatar answered Nov 11 '22 05:11

jonsca


The answers listed ( Window > Preferences > Java > Editor ) are accurate for the question. But if your goal is to find ways to visually see everything inside of braces, here are a couple of more ways you can do this:

Move cursor to the opposite brace: Ctrl-Shift-P moves the cursor to the opposite brace If you start somewhere in the middle of a section, this will toggle among three points, the beginning brace and the ending brace and where the cursor started. This works for parentheses also.

Highlight the contents of the braces: double click just to the right of the open, or left of the closing brace. The area is highlighted. At this point you can also copy to the clipboard.

like image 41
rwg Avatar answered Nov 11 '22 05:11

rwg