visual studio 2010 - Why does Resharper rename variables to start with an underscore? -


I have never understood this, and frankly, it stops me to see in the code: variable The names that begin with an underscore.

What does this mean?

I still have installed Resharper 5, trying it out and it feels good, though this one thing is wasting for me. / P>

I have not checked, but I hope I can turn it off. But why is this done in the first place?

This is a very common style for the private sector, some use m_lowerCamelCase , Other only _lowerCamelCase and still other less CamelCase . For variables inside functions, this is very rare and by default, rehear use lowerCamelCase for them.

Note that discourages the use of prefixes for public members, but private members are not worried (and public areas should be used only in special cases because of their threats).

All of the reshaper options can change in Languages> General> Naming Style .

You can also save your parameters in the solution or in one file and import / export them. Using it, you can set the parameters for everyone in your team once and for all.


Comments