June 2004
Beginner to intermediate
364 pages
7h 38m
English
Your code is getting long, and it’s hard to find the closing curly brace matching an opening brace, or vice versa.
Select the opening or closing brace and press Ctrl-Shift-P (or select Navigate→ Go To→ Matching Bracket).
This is a useful tip for long code listings. To match an opening brace with the corresponding closing brace, just select the opening brace and press Ctrl-Shift-P. Eclipse will highlight the line with the closing brace.
You also can double-click before an opening or after a closing brace, which selects the text between the two braces automatically, thereby enabling you to locate the closing brace quickly. This technique works not only with braces, but also with parentheses.