Live Rename
I've seen in IntelliJ where you can start to rename something, lets say a variable and it renames all instances in that file as you type. So lest say I have this:
var me = "Jason"
...some other code
user.name = me;
If I want to rename the variable me to say jason, as I start changing var me, I want the me to change (rename) as I type in all locations so there too. What is that called in Webstorm where it renames it everywhere as you type? How do you do that?
Please sign in to leave a comment.
Put cursor on `me`, invoke Refactor | Rename (Shift+F6 in default keymap), type a new name, hit Enter to complete renaming. See https://www.jetbrains.com/help/webstorm/2016.3/rename-refactorings.html
I swear I've seen it where you replace a name by typing a new name and you can see all other references in say the same file change real-time as you type. Where's that option?
it's there:
make sure that 'Enable in-place mode' is on in Settings | Editor | General; note also that it only works this way for local variables. For global ones, a dialog is shown that allows previewing usages