This feature would be pretty much similar to visual studio variable renaming as you can see in this gif
It would be a really nice feature for programmers on Roblox since keeping your code organized is really important and sometimes you just realize that the variable you made doesn’t make any sense or it would make more sense to use that variable somewhere else and rename the old one. Soo to speed up the process and avoid sometimes even using variable names which don’t fit just because otherwise, you would have to rename all the old ones, I think this feature would help a lot.
I’ve had the variable for the players ship set to “p” in my game since the beginning. Support!
Also, would this change the variable depending on if it is local to a function, loop, ect? If I have a variable named p for the ship and I set another local variable named p in a for loop and tried renaming one of them, would this keep that in consideration and only change the name of the p I want it to?
Scoping should always be considered. Suggestion for how that would work is only refactoring the variable between the scope you’re working in. So if you right click a “p” which is local for your function/loop/etc then it will only change the variable where it applies.
It’s already there and it’s used for script analysis widget (+ error/warning highlighting) as well as Intellisense for local variables. I don’t think we currently use it for highlighting the selected word - that is purely text based ATM (but there’s no reason why we can’t use it for highlighting the same variable either)
I would find this feature very useful right now. I’ve been manually finding and replacing several variable names very frequently lately, and it’s become a pain not to have this feature that comes standard with every other IDE I’ve used. Support!