如何改变Xamarin Studio格式化代码的方式?

Vin*_*H01 0 xamarin xamarin-studio

我是那种如何编写我的代码的人

if(...)
{

}
Run Code Online (Sandbox Code Playgroud)

但每次我这样做,Xamarin Studio会自动将我的代码更改为此

if(...){

}
Run Code Online (Sandbox Code Playgroud)

我该如何改变?

Gre*_*les 5

在Xamarin Studio的喜好,去Source Code> Code Formatting> C# source code,并单击编辑按钮:

C#格式化首选项

从那里你可以自定义一切.您可以选择Braces类别来自定义大括号格式:

支持偏好