Renaming variables to follow a coding standard
Is it possible to use Resharper (or other JetBrains tools) to renaming C# project variables to follow a coding standard?
Integrated with StyleCop, Resharper is very good at detecting naming violations, but I cannot figure out how to get it to automatically fix these violations?
In particular, I am interested in removing Hangarian notation (e.g. renaming strData to data).
If it is possible with Resharper, please explain on how to do that as I am just starting with the tool.
Thanks,
Yuriy
Please sign in to leave a comment.
Hello Yuriy
At the moment you can fix the naming violations by navigating between the warning and invoking the corresponding quick-fix (press Alt+Enter to see the available quick-fixes list). Let me know if this helps. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I would love to see a feature, either as part of, or similar to Code Cleanup which would go through the code and automatically apply the appropriate Quick Fix to variable names.