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.
IntelliJ IDEA provides several possibilities to learn shortcuts: Find Action lets you search for commands and settings across all menus and tools. Press Ctrl+Shift+A and start typing to get a list of suggested actions. Then select the necessary action and press Enter to execute it.
Put your cursor before or after the brace (your choice) and then press CTRL + ] . It works with parentheses ( ), brackets [ ] and braces { }. From now on you don't need to play Where's Waldo? to find that brace. With the above shortcut, you can also hold SHIFT to select.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With