Search code examples
eclipsekeyboard-shortcutscurly-braces

Eclipse jump to closing brace


What is the keyboard short cut in Eclipse to jump to the closing brace of a scope?


Solution

  • Place the cursor next to an opening or closing brace and punch Ctrl + Shift + P to find the matching brace. If Eclipse can't find one you'll get a "No matching bracket found" message.

    edit: as mentioned by Romaintaz below, you can also get Eclipse to auto-select all of the code between two curly braces simply by double-clicking to the immediate right of a opening brace.