How do I select individual words of a camelized word in IntelliJ IDEA

Keyboard ShortcutsIntellij Idea

Keyboard Shortcuts Problem Overview


What is the shortcut in IntelliJ IDEA to move across or select individual words of a camelized word? Lets say I have aLongMultiWordVariableName, I want to be able to move the cursor to each word for editing or select parts of the variable.

Eclipse has a shortcut to do this Ctrl+/ for move and Ctrl+Shift+/ for selection.

Keyboard Shortcuts Solutions


Solution 1 - Keyboard Shortcuts

IDEA has the same keystrokes as Eclipse for camel-case words, but you have to have the CamelHumps option turned on (it's in Settings -> Editor -> General -> Smart Keys -> Use "CamelHumps" words )

Solution 2 - Keyboard Shortcuts

Yes, the answer of yalestar is correct. Settings > Editor > Smart keys > Use "CamelHumps" words

However, here is something that can be usefull to know: If you want to be able to select the whole word by double-click on it, unselect the "Honor 'CamelHumps' words settings when selecting on double click" in Settings > Editor.

Solution 3 - Keyboard Shortcuts

There is a shortcut in latest version of Android Studio. You can just tap "Shift" key twice(double click) and then in search type "camelhum" then the option will appear and you can toggle it on/off. I have attached an image for reference.enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSathishView Question on Stackoverflow
Solution 1 - Keyboard ShortcutsyalestarView Answer on Stackoverflow
Solution 2 - Keyboard ShortcutsRomain LinsolasView Answer on Stackoverflow
Solution 3 - Keyboard ShortcutsHitesh BishtView Answer on Stackoverflow