Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm select next occurrence of symbol

Tags:

ide

phpstorm

How can I select occurrences of variables in PhpStorm rather than just any text in the editor?


In PhpStorm Alt + J will select next occurrence in text like so:

enter image description here

Is there an action to select next occurrence of symbol (not just text)? like so:

enter image description here

like image 401
Gavin Avatar asked Dec 10 '25 15:12

Gavin


1 Answers

In order to select next occurance of "symbol" you have to place your cursor on the word without selecting it and then hit Alt + J.

If you want to select the next occurance of text then you have to select the text first and then hit Alt + J.

So basically it behaves differently if you have selected a text or not.

like image 177
Alexis Pavlidis Avatar answered Dec 13 '25 18:12

Alexis Pavlidis