Question

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.

Was it helpful?

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

Вуаля!

OTHER TIPS

Ctrl+Alt+S and select Keymap from settings, you can change what you want it to there.

But I would suggest using the autocomplete/intellitext features of IntelliJ and the refactoring tool, without manually navigating through variable names - they normally get it right first time.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top