we have a code base (VB.NET and C#) and a new coding standard. Do you have suggestions of tools that can move through a project and rename parameters/fields/properties/metothods etc according to the new coding standard.
It might for example need to change parameters into camel-case etc. One would imagine that parameters and local fields/variables are more easily renamed due to their local scope. I have looked at ReSharper but haven't found that it performs this task.
This refactoring allows you to modify a method signature in the following ways: Add, remove, rename, or reorder parameter(s) Change return type. Change parameter type(s) Rename method.
Use an EditorConfig file when you want to enforce coding styles for all contributors to your repo or project. You can manually populate your EditorConfig file, or you can automatically generate the file based on the code style settings you've chosen in the Visual Studio Options dialog box.
Clicking on the Code Action lightbulb or using the Quick Fix command Ctrl+. will display Quick Fixes and refactorings. If you'd just like to see refactorings without Quick Fixes, you can use the Refactor command (Ctrl+Shift+R).
Sounds like a job for ReSharper with the StyleCop plugin. Here's an example:
Parameters name camelCasing :
fields renaming :
Solution Cleanup :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With