I have been away from programming for some time, but I recall there was a way,
at least in the Borland compiler IDE to locate the matching curly bracket by
placing the cursor on one then some other key or combination to go to the other.
Could be I am thinking abut Pascal.
All modern IDE editors highlight the matching brace in some way, but there are shortcuts for jumping as well (Ctrl+Shift+B in Code::Blocks, Ctrl+Shift+P in Eclipse).
The Code::Blocks IDE will highlight sets of curly brackets and parenthesis. All you need to do is position your cursor next to one of the curly brackets or parenthesis in the code editor. It also has another feature where it automatically adds the closing parenthesis or curly bracket. Both of these features are on by default.
If you want to turn off the feature that automatically adds a closing brace, here are the instructions.
1) In the top menu, click 'settings', and then click 'editor...' in the drop down menu.
2) Look for 'Brace Completion' in the 'General Settings' tab. Uncheck it.
(As Athar said, to move to the other curly bracket, use Ctrl+Shift+B. It will move your cursor to the matching bracket in Code::Blocks.)
Thanks to all for your replies. I tried the 2 ctrl-shift methods mentioned by athar. Neither
works. Maybe I was thinking of some other compiler I was using back in the day.