我试图对齐一些分配以提高可读性,但每次我粘贴内容时,Visual Studio 2013 会自动删除 =
之前的多余空格。
例如,这个:
static class Constants {
public static string Something = "A value";
public static string SomethingElse = "Another value";
}
像这样重新格式化:
static class Constants {
public static string Something = "A value";
public static string SomethingElse = "Another value";
}
有没有办法关闭它?
最佳答案
这可以通过“忽略声明语句中的空格”选项在 Tools->Options->Text Editor->C#->Formatting->Spacing
中关闭。
关于c# - 阻止 Visual Studio 2013 自动删除分配中的额外空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28834688/