How can I select next occurrence in IDEA editors

Solution 1:

I believe they recently added this to the latest IntelliJ release, and I would assume PhpStorm as well. As the bindings are system specific, take a look at http://blog.jetbrains.com/phpstorm/2014/03/working-with-multiple-selection-in-phpstorm-8-eap/. Looks like that version is available through EAP, so don't know when they will release it for general consumption (or if they have already).

DEFAULT SHORTCUTS

Alt+J on Windows and Linux, Ctrl+G on Mac OS X

Solution 2:

On Mac OS X, you can select the next occurrence with Ctrl+G

Solution 3:

In the settings window, search for ”Add Selection for Next Occurence” (PhpStorm 8.0.1)

On mac the default is ctrl+G, but you can change it to ctrl+D (or cmd+D on mac)

Solution 4:

Currently its mapped with

for selection, Alt + J

for unselection, Alt + Shift + J

but if you're familiar with sublime shortcuts like Ctrl + D

Jetbrains give you an option to change settings,

Settings -> Keymap -> Editor Actions

search for multiple selection, find Alt + J then right click -> select change keyboard shortcuts

set shortcuts you want as like sublime, Ctrl + D

Here is the Docs