我正在使用Visual Studio 2005.它总是希望像这样格式化switch语句:
switch (thing)
{
case A:
stuff;
break;
case B:
things;
break;
}
Run Code Online (Sandbox Code Playgroud)
有没有办法让它缩进这样的案例?:
switch (thing)
{
case A:
stuff;
break;
case B:
things;
break;
}
Run Code Online (Sandbox Code Playgroud)
And*_*are 42
到这里:
Tools > Options > Text Editor > C# > Formatting > Indentation > Indent case labels
| 归档时间: |
|
| 查看次数: |
12005 次 |
| 最近记录: |