关键字后面不加空格
2016-03-20 04:25
253 查看
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".
I suspect you'll find you've got that checked, and you don't want it to be. (I have it checked deliberately :)
如果安装了Resharper,还需要再Resharper里面另外设置
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".
I suspect you'll find you've got that checked, and you don't want it to be. (I have it checked deliberately :)
如果安装了Resharper,还需要再Resharper里面另外设置
![](http://images2015.cnblogs.com/blog/470550/201603/470550-20160320042858990-88719477.png)
相关文章推荐
- Android自定义TextView实现drawableLeft内容居中
- python中的装饰器Decorator用法
- C++实验2—标准体重
- C语言实现单链表面试题汇总
- Scala中的隐式转换
- PHP中变量的声明、作用范围和解析规则
- Scala学习笔记(4)
- [Angular 2] Injecting a Service
- struts2 配置文件示范说明 xml 格式和 properties 格式
- Sort in C
- Scala学习笔记(3)
- [Angular 2] Event in deep
- Unity Shaders and Effects Cookbook (1-4) 创建 Ramp Texture(渐变纹理)控制漫反射着色
- 20145208《Java程序设计》第3周学习总结
- JSON 格式化为易读格式的字符串
- android高仿京东垂直循环滚动新闻栏
- 转载 线程安全和线程不安全理解
- Matric and C
- Hibernate第一个程序流程(2016-3-20)
- BZOJ4435 : [Cerc2015]Juice Junctions