是什么在空花括号块中插入空格? [英] What inserts space inside empty curly braces block?

查看:108
本文介绍了是什么在空花括号块中插入空格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 使用Visual Studio 2015,编辑 C#代码,键入两个字符序列 {}

  • 东西不断在块内插入单个空格,导致 {} ,这对于某人来说可能很烦人。 / li>
  • Using Visual Studio 2015, editing C# code, typing two character sequence {}.
  • 'Something' constantly inserts single space inside the block resulting in { }, which might be pretty annoying for someone.

禁用所有IntelliSense和Resharper格式后,是什么原因引起的?

推荐答案

虽然不是很直观,并且预期:

Although not very intuitive and expected:

Smart 工具/选项/文本编辑器/ C#/制表符/缩进中的c $ c>选项引起了此现象。将其更改为 Block 即可停止...

Smart choice in Visual Studio menu item Tools/Options/Text Editor/C#/Tabs/Indenting is causing this behavior. Changing it to Block stops it...

这篇关于是什么在空花括号块中插入空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆