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<I开发者_JAVA技巧NHibernateRepository<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?
ReSharper options > Laguages > C# > Other > Modifiers:
Uncheck the Use explicit private modifier
.
The author of MSpec, Aaron Jensen, addresses a few formatting issues in this post. Specifically,
- explicit private modifiers
- weird lambda indentation
- field naming warnings
精彩评论