2

当我运行 Coderush 的清理文件命令时,它采用如下格式的代码:

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

并将其格式化如下:

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

如何防止 coderush 左对齐我的方法链接?

4

1 回答 1

3

目前,这种行为是设计使然,不幸的是,您无法阻止这种行为。我们 (DevExpress) 注册了一个保留用户缩进的建议。我们将在未来的版本中实现它(可能在 2012.1 版本中)。

于 2011-11-03T10:31:31.230 回答