So I was helping a team debug their program and I came across the problem that their code had variable names for functions that it shouldn’t be - (ex: for a turning function they had it named ‘drive’.) - and I was wondering if there was a way that I could rename all instances of that variable instead of changing it one by one.
The keyboard shortcut ctrl + h allows you to search for certain text and replace it with any string of text
2 Likes
Ctrl+H, enter the word you want to replace in the top bar, enter the word you want to replace it with in the bottom bar, click on “change all occurrences”, done.
1 Like
Awesome thank both of y’all very much @Odysseus and @computingpotatochips
Is there not a “Refactoring” or “Rename” menu or tool of some kind in VEXcode? Most IDEs have such a tool which allows for changing of variable/function/class/whatever names in a more intelligent manner than simple find and replace, in addition to many more advanced refactorings.
2 Likes
It seems it is, I never even thought of checking for that. Thank you so very much.