How can I select next occurrence in IDEA editors
Intellij IdeaPycharmPhpstormWebstormIntellij Idea Problem Overview
Ctrl+D performs the find_under_expand
command in sublime. This basically searched for the next occurrence of the already selected text and selected it, so when I edit, it's edited on both places at the same time. I'm currently trying to move to IDEA editors (such as WebStorm, PHPStorm, PyCharm, etc) but didn't find something like this command in this IDE yet.
Intellij Idea Solutions
Solution 1 - Intellij Idea
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 - Intellij Idea
On Mac OS X, you can select the next occurrence with Ctrl+G
Solution 3 - Intellij Idea
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 - Intellij Idea
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
Solution 5 - Intellij Idea
On Windows
Alt+j - Multiple Select
Alt+Shift+j - Unselect Multiple Select
Solution 6 - Intellij Idea
I think what you want to do is refactor it at all the place in the file at once. So in MAC machine the handy shortcut for it is shift + F6 (you may have have to use fn key before F6). Click on the text you want to change and then press shift + F6. It will highlight the text and then your change at all the place in the file. :)
It will do the job same as sublime ctrl + D
Solution 7 - Intellij Idea
PhpStorm has a "Select Word at Caret", Ctl+W and Ctl+Shift+W respectively (you can check your keys by searching under Preferences > Keymap).
Detail here: http://www.jetbrains.com/phpstorm/webhelp/selecting-text-in-the-editor.html#d617165e275
Not entirely sure if it's the same as you mentioned, but it's mighty handy!