Is there any keyboard shortcut to navigate from one parenthesis (
to the matching one )
in IntelliJ?
Or even to "jump to the next opening/closing parenthesis (
/)
from wherever my cursor is"?
And, if there's no way to do it 'natively', are there any plugins that could add this functionality quickly and easily?
EDIT: the best solution I've found is added as a comment in liango's answer below, namely to put the cursor on the first or last brace and then press CTRL-W
twice. Not ideal, but it does the job!
To see a bracket's pair, click to the right of the bracket. Its matching pair will be highlighted. To jump to the matching bracket, press Ctrl+Shift+P.
You can use Ctrl + [
and Ctrl + ]
to navigate to a code block's start and end.
You can also use Ctrl + Shift + M
to navigate between the start and end of a code block.
On Mac, you can use Option + Cmd +[
and Option + Cmd + ]
, and Ctrl + M
Source: https://www.jetbrains.com/help/idea/2016.2/navigating-to-braces.html
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