brace layout without indentation
For anonymous types and anonymous delegates, is it possible to get rid of the line indentation? So when autoformatting, instead of this
this.container = new Container(x => { x.For<IShell>().Use<ShellViewModel>(); x.Scan(r => { r.AssemblyContainingType<IEventAggregator>(); r.WithDefaultConventions(); r.TheCallingAssembly(); }); });
I'd would like to get this:
this.container = new Container(x => { x.For<IShell>().Use<ShellViewModel>(); x.Scan(r => { r.AssemblyContainingType<IEventAggregator>(); r.WithDefaultConventions(); r.TheCallingAssembly(); }); });
Again, it should also work like this for anonymous types.
Please sign in to leave a comment.
Hello
You can turn off the 'Indent anonymous method body' and 'Indent object/array/collection initializer' options under ReSharper | Options | Code Editing | C# | Code Style | Other. However, this won't eliminate indentation completely. Let me know if this helps. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
It helped. Thank you! However the correct path to the settings (in ReSharper 6.1) is: ReSharper | Options | Code Editing | C# | Other | Other