Go to matching bracket?

Is there a hotkey to navigate to a matching bracket? For example, if I'm the end of a long function or if condition, and I want to get back to the start....is there a way to do that?

4 comments
Comment actions Permalink

Sure:

  • Move Caret to Code Block Start = Ctrl+[
  • Move Caret to Code Block End = Ctrl+]


Please check Settings | Keymap --> Editor Actions for more actions and their shortcuts.

0
Comment actions Permalink

I was looking for it under the "navigate" and Ctrl+Shift+A menu...couldn't find it in either place.

Thanks.

0
Comment actions Permalink

It is funny, as German keyboards have square and curly braces under special keys and shortcuts which uses them does not work.

The one which works is "Ctrl + Shift + m".

0
Comment actions Permalink

@Seweryn Habdank-Wojewodzki

In such case you better assign another shortcuts to those actions in "Settings/Preferences | Keymap"

Other than that:

0

Please sign in to leave a comment.