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里面另外设置

关键字后面不加空格

 

相关文章:

  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2022-02-17
  • 2021-05-04
  • 2022-01-06
猜你喜欢
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
相关资源
相似解决方案