Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - how to go to matching bracket?

How to go to matching bracket in Eclipse IDE (in Text, Java or JavaScript)?

(match opening and closing brackets)

I naturally tried Ctrl+}, but it is not there.

like image 510
Paul Verest Avatar asked Dec 31 '13 08:12

Paul Verest


People also ask

How do I match brackets in vi?

The % key can be used for the following : To jump to a matching opening or closing parenthesis, square bracket or a curly brace: ([{}])

How do I change the bracket in eclipse?

The simplest and global way: Go to Window -> Preferences. Then in search put: "brace". Select -> Java -> Code Style-> Formatter After opening new window go to brace tab and change it as you prefer.

How do you close the brace in eclipse?

Solution. Select the opening or closing brace and press Ctrl-Shift-P (or select Navigate→ Go To→ Matching Bracket).


2 Answers

You can see the setting for this in Preferences > General > Keys and search for Go to Matching Bracket.

On my Mac it is Shift+Cmd+P (so probably Shift+Ctrl+P on Windows/Linux).

like image 107
greg-449 Avatar answered Oct 17 '22 02:10

greg-449


Try Ctrl + Shift + P . This may help you getting what you need.

like image 30
Foolish Avatar answered Oct 17 '22 03:10

Foolish