Is there a command or an addin in Visual Studio 2012 that would convert a selected piece of C# source code from SOME_NAME
to SomeName
?
Approach: Use str. replace() method to replace the first character of string into lower case and other characters after space will be into upper case. The toUpperCase() and toLowerCase() methods are used to convert the string character into upper case and lower case respectively.
CamelCase READMEUse ctrl+alt+c for Windows/Linux and ctrl+cmd+c on Mac.
In camel casing, two or more words are placed together without any space or underscore ( _ ), but the first letter of the first word is in lowercase and the first letter of the next word is capitalized.
I use resharper 7.0. It has rules on naming conventions so when I have stuff named SOME_NAME it will let me know and It will change it to the name based on the rule convention.
it will also apply naming convention to change that variable name to the code in which uses it.
I have no idea if resharper will do it all for you at once though. I've only used it for one off stuff.
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