IntelliJ IDEA shortcut keymap for matching brace

What is the keymap for navigating to the matching brace in IntelliJ IDEA?

public void blah() {|
   ...

}

If | is my cursor, I would like to jump to the closing brace with this keymap.


I've only verified this with IntelliJ 9 but:

On Windows:

  • Ctrl+} will move to the close bracket.

  • Ctrl+{ will move to the open bracket.

On Mac:

  • Use cmd instead of Ctrl.

As an alternative to Ctrl+} and Ctrl+{ you can by default use Ctrl+Alt+Shift+9 and Ctrl+Alt+Shift+8 respectively. I haven't even tried to remember that yet. ;)

Also in Settings -> (IDE Settings ->) Keymap -> Editor Actions there's an entry called "Move Caret to Matched Brace" that doesn't have a default key mapping. I mapped it to Ctrl+< because the key combination was unmapped and the keys are close to each other on a german keyboard.

This applies to IDEA 12.


Its ^M (control + M) on my Mac using IDEA v15 and keeping the default keymap for MacOSX 10.5+

If you are not sure go to prefs and search for "Move Caret to Matching Brace". That's the name of the command and you can set your own shortcut!