Jump to matching brace

Hello. I have searched the forums and the in-product help. Is there a way I can bind a key combination to "jump to matching brace"? Let's say I am positioned at a closing bracket and I want to jump to the start by pressing CTRL+E.

Thanks

5 comments

Control +
cloder wrote:

Hello. I have searched the forums and the in-product help. Is there a way I can bind a key combination to "jump to matching brace"? Let's say I am positioned at a closing bracket and I want to jump to the start by pressing CTRL+E.

Thanks



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Maxim,

Thanks for your response. Is there a way within the Keymap settings dialog to type a shortcut key combination to see what action the combination is currently bound to? In other words, can I press CTRL+[ in a dialog and have IDEA show me the current action for that combination?

Also, IMHO having two keys for brace finding (left bracket and right bracket) is nice when you are inside a code block. However, when you the cursor is already positioned on a bracket, it would be nice to have either key act as a toggle (go to the OTHER matching brace). Consider that a feature request :)

0

Shortcut filter next after search field in Keymap dialog.

cloder wrote:

Maxim,

Thanks for your response. Is there a way within the Keymap settings dialog to type a shortcut key combination to see what action the combination is currently bound to? In other words, can I press CTRL+[ in a dialog and have IDEA show me the current action for that combination?

Also, IMHO having two keys for brace finding (left bracket and right bracket) is nice when you are inside a code block. However, when you the cursor is already positioned on a bracket, it would be nice to have either key act as a toggle (go to the OTHER matching brace). Consider that a feature request :)

Please, file request in JIRA.


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Shortcut filter next after search field in Keymap
dialog.


...unless you have a non-US keyboard layout. If you need to press AltGr+8 to get [ out of your keyboard, then it's impossible to use the shortcut filter. If you don't know the name of the action, your only option is to do a linear search and go through every action's shortcut list - one action at a time.

Feel free to vote on these, especially IDEABKL-4335 because it is a very serious usability issue (utility and performance almost zero in this use case):
http://www.jetbrains.net/jira/browse/IDEABKL-4335
http://www.jetbrains.net/jira/browse/IDEABKL-3826

0

Hi.

cloder wrote:

Is there a way within the Keymap settings dialog to type a shortcut key combination to see what action the combination is currently bound to?


There are two ways which I know.
The first is in case you use IDEA 7. In the Keymap configuration frame
click on the toolbar button at the right side of the search box. The
button activates "Shortcut filter". Press your shortcut there and you
will see the actions which it is bound to.
The second way is to install "Describe Key" plugin. It places a command
in Tool menu named "Describe Key". The rest is self-explaining.

Also, IMHO having two keys for brace finding (left bracket and right bracket) is nice when you are inside a code block. However, when you the cursor is already positioned on a bracket, it would be nice to have either key act as a toggle (go to the OTHER matching brace). Consider that a feature request :)


In general, when you are at, for example, the right brace and press
CTRL-], you go at the next right brace. That way you can go to the end
of the next block and then the end of the next block etc. If you want to
go to the previous brace, there is already a shortcut for it - CTRL-[.
Similar for the opposite direction. Such behavior makes sense. Do you
really think a new shortcut is needed?

Greetings
George

0

Please sign in to leave a comment.