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