Alex Rivera | Logout

Eclipse jump to closing brace

Asked 2008-11-14T06:04:37.343
400

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

Edit
Report

1 Answer

11

I found that if the chosen perspective doesn't match the type of the current file, then "go to matching brace" doesn't work. However, changing perspectives makes it work again. So, for example, when I have a PHP file open, but, say, the Java perspective active, pressing Ctrl + Shift + P does nothing. For the same file with the PHP perspective active, pressing Ctrl + Shift + P does exactly what you'd expect and puts my cursor beside the closing brace relative to the one it started at.

answered 2009-10-28T13:26:20.947

Your Answer