2

When I run Coderush's clean up file command it takes code formated like this:

public object GetConfig() 
{
    //fluent mappings are lined up 
    return MsConfig.MsSql2008
           .ShowSql()
           .UseReflectionOptimizer()
           .ConnectionString(_connstring);
}

and formats it like this:

public object GetConfig() 
{
    //fluent mappings are left justified  
    return MsConfig.MsSql2008
    .ShowSql()
    .UseReflectionOptimizer()
    .ConnectionString(_connstring);
}

How do I prevent coderush from left justifying my method chainings?

wusher
  • 12,291
  • 22
  • 72
  • 95

1 Answers1

3

Currently, this behavior is by-design and you can't prevent this, unfortunately. We (DevExpress) have a suggestion registered for keeping user indents. We are going to implement it in a future release (probably, in the 2012.1 release).

Alex Skorkin
  • 4,264
  • 3
  • 25
  • 47
Droni
  • 46
  • 2
  • has this been implemented? I downloaded the trial today and I don't see it and I want the indents I provided particularly with Linq lambdas. – Kurt Koller Apr 27 '12 at 00:45