views:

168

answers:

2

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 + Left/Right for move and Ctrl + Shift + Left/Right for selection.

+3  A: 

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 -> Smart Keys -> Use "CamelHumps" words )

yalestar
+1  A: 

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.

romaintaz

related questions