Search code examples
c#resharpermspec

How do I get ReSharper to stop placing explicit access modifiers on my MSpec members?


I'm using Machine.Specifications and I'm really annoyed by how VS2010/Resharper keeps trying to format my code... for example:

Establish context = () => the_cartoon_repository = DependencyOf<INHibernateRepository<Cartoon>>();

Gets turned into:

private Establish context = () => the_cartoon_repository = DependencyOf<INHibernateRepository<Cartoon>>();

As soon as I press enter. Argh! There's got to be a way around this, no?


Solution

  • ReSharper options > Laguages > C# > Other > Modifiers:

    Uncheck the Use explicit private modifier.