如何在Visual Studio 2015中禁用所有空白自动格式设置? [英] How to disable all whitespace autoformatting in Visual Studio 2015?
问题描述
我真的很喜欢新的Visual Studio 2015,但是自动格式化对我来说有点太广泛了.特别是我喜欢控制空格:
I really like the new Visual Studio 2015, but the auto formatting is a bit too much extensive for my liking. Especially I like to have control over whitespace:
public class TipStats
{
public int Points { get; set; }
public int Position { get; set; }
public decimal Percentage { get; set; }
}
我在设置中仅看到三个自动套用格式设置,并且已将它们全部打勾-Visual Studio仍在自动格式化我的空格.
I only see three autoformat settings in my settings, and I have ticked them all off - still Visual Studio is autoformatting my whitespace.
要禁用所有空白自动格式化,是否还需要了解其他隐藏设置?
Are there any other hidden settings that I need to know for disabling all whitespace autoformatting?
更新 正如@Saragis所指出的,对于此特定示例,忽略声明语句中的空格有时有时是有效的,但是仍然有各种各样的自动格式化强制我想要的东西工作.
Update As @Saragis notes Ignore spaces in declaration statements works sometimes for this specific example, but still there all kind of autoformat forces working against what I want.
大多数选项似乎仅定义方式您要进行自动格式化的方式.我正在寻找定义如果您要自动格式化的设置.
Most options seem to only define how you want your autoformatting. I'm looking for the setting that defines if you want autoformatting.
PS:我在自动格式化时仅遇到问题,我仍然使用 CTRL + K,F 来手动格式化部分代码然后.
PS: I'm having only problems with autoformatting I still use CTRL+K, F to manual format parts of my code now and then.
更新-在UserVoice上添加了功能请求