Rename variables (correcting case)
I have inherited some code that really wasn't written very well. One of the things that is bugging me is that most of the variables start out capitalized and I keeping thinking I'm looking at a class.
Is there a way to automatically rename variables from starting with an uppercase?
Thanks!
请先登录再写评论。
Try checking out Structural search and replace. I am not sure if it can do it but if anything can it is probably the feature to check out.
Search->Replace Structurally
Probably have to hit the help menu to figure out how to use it.
And people that write code with uppercase variables should be thumped on the head...I have had to fix code with upper case variables myself...it is annoying.
Thank you, I'll give it a try and let you know if this works. Worse case, I'll have learned about another feature!
You're absolutely right, people who do this should be thumped in the head. Unfortunately, the person who wrote this could should be thumped in the head for much much much more serious offenses.
Maybe I haven't completely figured out how to use it, but I don't see how to change the first character from upper case to lower case. Any ideas?