Page 1 of 1

[IDE tool] Variable renaming

Posted: Wed Apr 19, 2023 10:25 am
by AZJIO
Variable renaming

Download yandex

Image

Sometimes variables are created on the fly without much thought. As development progresses, some variables have ambiguous names. For example it would be desirable to make a prefix global variables. For example, the "i" and "j" counters should be changed to "x" and "y", since this is related to the coordinates.

Re: Variable renaming tool (?)

Posted: Wed Apr 19, 2023 11:57 am
by Kukulkan
I don't know the answer to your specific question but the feature you're asking for is refactoring. Maybe you can find some info for that search term? IDE's like Visual Studio (Code), IntelliJ IDEA and many others offer refactoring for several languages like golang, JavaScript or PHP out of the box. But it is a complex thing as variable scope (functions, classes, loops, modules etc) must be followed and respected, too. Otherwise, by a simple search/replace, you may destroy code.

Re: Variable renaming tool (?)

Posted: Wed Apr 19, 2023 3:31 pm
by AZJIO
Done.
Video of how it works