Mar*_*rde 10 c# comments text-editor indentation visual-studio-2015
在Visual Studio 2015中,如果您有这样的代码:
var foo = that.Bar(); // Get the value
//foo++;
Run Code Online (Sandbox Code Playgroud)
选择编辑 - >高级 - >格式文档会导致格式如下:
var foo = that.Bar(); // Get the value
//foo++;
Run Code Online (Sandbox Code Playgroud)
Visual Studio假设两个不相关的注释相关并将它们组合在一起.关系的假设是因为有连续的行,一个以注释结束,另一个以一个开头.当然,这可以通过添加空行来解决,但这并不总是最佳选择,具体取决于具体的代码.请注意,Visual Studio 2013没有此功能.
我无法通过互联网搜索找到任何提及此功能的内容.这是C#,Visual Studio配置为保留选项卡.
有没有办法禁用这部分自动格式化?