I'm trying to improve consistency within my team's codebase and to do this I'm putting together a team-shared R# configuration. However, I find that this codebase prefers this sort of style for embedding lambdas:
services.AddAuthorization(options =>
{
options.AddPolicy("Foo", policy =>
policy.Requirements.Add(new Bar()));
});
Whereas ReSharper reformats this code like:
services.AddAuthorization(
options =>
{
options.AddPolicy("Foo", policy =>
policy.Requirements.Add(new Bar()));
});
Is there a way I can configure R# to enforce the original style?
Edit
Environment:
- Visual Studio 2017 (v15.9.10)
- ReSharper Ultimate 2018.3.4