Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I jump/toggle to a closing bracket in PhpStorm?

Does anyone know some shortcut to jump to a closing bracket in PhpStorm (IntelliJ - JetBrains)?

I'm trying to find other ways to do this without using the shortcuts Ctrl + ], Ctrl + [.

I would like a shortcut to toggle to matching braces in PhpStorm.

like image 436
Davijr Avatar asked Sep 11 '25 03:09

Davijr


2 Answers

In the menu bar, go to "Navigate/ Navigate in File/ Move Caret to Matching Brace". You probably want to memorise the keyboard shortcut displayed there.

Another way to find the command is "Help/ Find Action". It can take a bit of guessing, though, if you don't know the right keywords.

Find actions dialogue with "matchi" typed in the search box

Note that "Find Action" itself also has a keyboard shortcut, and you can also tap Shift,Shift (double shift) to get the "Find All" tab of this same dialogue.

like image 88
Álvaro González Avatar answered Sep 12 '25 16:09

Álvaro González


Shortcut to toggle:

Ctrl + Shit + M for Windows

Ctrl + M for Mac

like image 28
Davijr Avatar answered Sep 12 '25 16:09

Davijr