相关疑难解决方法(0)

使用Resharper自定义Brace格式

我正在使用Resharper 4.5,我在编写数组或对象初始化程序时需要自定义大括号格式.Resharper支持一些样式:

Gnu风格:

int[] array = new int[]  
                  {  
                      1, 2, 3  
                  }  
Run Code Online (Sandbox Code Playgroud)

但是我需要:

int[] array = new int[] 
{  
    1, 2, 3  
}  
Run Code Online (Sandbox Code Playgroud)

有没有办法自定义这个模板?

c# resharper indentation auto-indent

78
推荐指数
2
解决办法
7681
查看次数

标签 统计

auto-indent ×1

c# ×1

indentation ×1

resharper ×1