我正在使用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)
有没有办法自定义这个模板?
我正在努力使用Resharpers格式化.请考虑以下代码:
product.Resources.Where(x => x.Tracked).Pipe(y =>
{
//Action
});
Run Code Online (Sandbox Code Playgroud)
我怎么能告诉ReSharper在花括号和花括号本身中缩进一点呢?我已经尝试了几个Resharper格式设置,但在这种情况下没有任何效果.
我想有一个类似于这样的格式:
product.Resources.Where(x => x.Tracked).Pipe(y =>
{
//Action
});
Run Code Online (Sandbox Code Playgroud)