Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 400
chum of chance Avatar asked Dec 27 '22 18:12

chum of chance


1 Answers

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

Uncheck the Use explicit private modifier.

like image 68
Jin-Wook Chung Avatar answered Jan 04 '23 15:01

Jin-Wook Chung