javaeclipseintellij-ideausabilityshortcut

Changing behavior of Ctrl+Shift+Left/Right in IntelliJ IDEA like in Eclipse


Hi I'm new to IntelliJ IDEA and got here and there usability issues, because I'm coming from Eclipse.

When I rename a variable and want to mark the second part of it by hitting Ctrl+Shift+Right, the cursor moves to the next word which is outside of the border for renaming and when I type the new name and click Enter, the rename isn't executed for the other usages of the variable. Is there a setting where it's possible to change the behavior of Ctrl+Shift+Left/Right so that the caret moves right after the last character of the variable name?

Second question

When I'm moving the cursor through a variable name with Ctrl+Left/Right the next stop in Eclipse was always before the next upper case letter. Is in Idea also a setting to activate this? This would be very helpful when renaming variables.


Solution

  • What you exactly need is [I have jIdea 12.1]:

    1. Go to settings [Ctrl+Alt+S]
    2. Choose [Editor -> General -> Smartkeys]
    3. Check the [Use "CamelHumps" Words] button

    Вуаля!