Disable automatic private modifier in ReSharper
Posted by Vadim on October 20, 2008
If you use ReSharper, you notice that every time you create a global class variable without a modifier, ReSharper will add a private modifier for you.
Some people may be prefer this way. I personally don’t see what values it adds. My brain already knows that if there’s no modifier for a variable, than this variable is private. I don’t need any extra information for my brain to process and filter.
Luckily for me ReSharper has an option to turn this feature off.
- Lunch ReSharper – Options dialog box.
- On the left part of the dialog select C#/Formatting Style/Other
- On the right part of the dialog uncheck ‘Use explicit private modifier’.