Visual Studio + ReSharper private modifier

When writing in c#, I’m used to not writing the private modifier for anything.
But for some reason when using ReSharper with Unity, the default settings recommends using private. I found this annoying as microsoft suggests not writing private, due to anything being private should be the default.
I was going going through stackoverflow, and read comments about readability and clarity by adding the private, but for me I think it makes things more clutered and harder to read..
Also probably depends on what you were used to when starting off coding?

Anyways, let’s disable the private being added automatically.

1.) Extensions -> ReSharper -> Options…
2.) Category: Code Editing -> Modifiers
Prefer explicit/implicit private modifier for type members -> Implicit

Leave a Reply

Your email address will not be published. Required fields are marked *