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?

1 Answer 1

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).

Sign up to request clarification or add additional context in comments.

1 Comment

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.