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!

3 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0
Comment actions Permalink

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?

0

Please sign in to leave a comment.