Cursor jumps out of the word in refactor rename

Answered

I press Shift+F6 to rename a class name. I press Ctrl+Left and the cursor jumps  to the beginning of the class name so it is possible to start to type something. After that I press Ctrl+Right and cursor jumps out of the class name so typing something types new character out of the class name.

Is it expected behavior?

I would expect that for the class name HelloWorld the result would be:

Shift+F6-> start class renaming

Ctrl+Left, type New -> actual result is NewHelloWorld 

Ctrl+Right, type Test -> actual result is NewHelloWorld Test instead of NewHelloWorldTest

0
2 comments

Ctrl+Right is bound to "Move Caret to Next Word", this is exactly what happens. This behavior is by design for this action. You may want to use End shortcut instead.

1
Avatar
Permanently deleted user

I see, thank you.

0

Please sign in to leave a comment.