gpt4 book ai didi

visual-studio-2010 - Coderush 代码清理设置

转载 作者:行者123 更新时间:2023-12-04 06:09:15 27 4
gpt4 key购买 nike

当我运行 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 左对齐我的方法链?

最佳答案

目前,这种行为是有意为之,不幸的是,您无法阻止这种情况。我们 (DevExpress) 注册了一个保持用户缩进的建议。我们将在 future 的版本中实现它(可能在 2012.1 版本中)。

关于visual-studio-2010 - Coderush 代码清理设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7972187/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com