Intellij IDEA: Do Refactoring> Rename Don't Select All Word

When I click on my shortcut to rename a variable (it is in this shortcut "Main Menu"> "Refactoring"> "Rename ...") the whole word is selected .

Is it possible to change the behavior to activate refactoring and the cursor remains in the position (he already does this, this is normal) and that I can directly add or remove a character?

Right now, if I have the variable "myVarible" and I placed the cursor between "i" and "b" to add "a", click on the shortcut and type "a", my whole variable will become "a" since the whole word was selected by shortcut.

In Eclipse, this is similar to the default behavior already, and I really liked it. How can I change this in Intellij?

+4
source share
1 answer

You can do this by going to Settings → General → Refactoring and simply deselect “Preselect old name” or simply enter Refactor in the search field in the settings so that it automatically goes to the menu above.

+6
source

Source: https://habr.com/ru/post/1675684/


All Articles