当Resharper对此代码应用格式化样式时
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new Info { Title = "My API", Version = "v1" });
});
结果(未预期)如下:
services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new Info { Title = "My API", Version = "v1" }); });
我在Resharper中“换行和包裹”的当前设置:
问题:
是否有设置的组合来保留原始格式?