关键字后面不加空格

http://stackoverflow.com/questions/4208231/visual-studio-adding-space-after-if-statements

In the Visual Studio options, under Text Editor / C# / Formatting / Spacing, in the "Set other spacing options" part, there's an option for "Insert space after keywords in control flow statements".

suspect you'll find you've got that checked, and you don't want it to be. (I have it checked deliberately :)

 

 

 

如果安装了Resharper,还需要再Resharper里面另外设置

关键字后面不加空格_第1张图片

 

你可能感兴趣的:(关键字后面不加空格)