N
N
nektobit2015-05-19 05:23:04
JavaScript
nektobit, 2015-05-19 05:23:04

How to change the name of a variable, simultaneously throughout the code, but within the scope of this variable?

So we declared a variable and we carry out some manipulations with it in the code. And we suddenly changed our minds and decided to name the variable differently. This could be done by autocorrect throughout the code. But I want to do it within the scope (accessibility) of the variable. It's about js and webstorm. You can give examples from other languages ​​and IDEs.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2015-05-19
@nektobit

Shift + F6 or Top Menu -> Refactor -> Rename

E
Eldiyar Barynbekov, 2020-11-21
@eldiyar_321

Select variable and F2

N
Nick Sl, 2021-11-13
@nmkru

6190119a1bcda015288626.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question