Coderush 代码清理设置
当我运行 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 左对齐我的方法链?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前,这种行为是设计使然,不幸的是,您无法阻止这种情况。我们(DevExpress)注册了一项保留用户缩进的建议。我们将在未来的版本中实现它(可能是在 2012.1 版本中)。
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).