2017-05-10 37 views
6

我已经看过,并寻找方法来禁用的意见缩进当我保存C#文件在Visual Studio 2015年安装ReSharper的9.0.0.0。禁用的意见与Visual Studio自动缩进2015

我想伪之前,我开始写实际的代码。不过,我一直在调整Visual Studio和Resharper的设置,但都无济于事。因此,例如我要评论看起来像:

private string ToggleString(string input) 
    { 
     // If input.length is between 1-100 
      // All the uppercase letters converted to lowercase. 
      // All the lowercase letters converted to uppercase 
     // else 
      // Return a constructive message. 

     return input; 
    } 

当我保存CTRL + 小号它变成像这样:

private string ToggleString(string input) 
{ 
    // If input.length is between 1-100 
    // All the uppercase letters converted to lowercase. 
    // All the lowercase letters converted to uppercase 
    // else 
    // Return a constructive message. 

    return input; 
} 

如何禁用自动格式?

回答

0

我不认为它可能只是省略行内注释格式和还是做其他的代码清理。

你可以试试,也许移动到XML文档注释,并与设置尝试如图片

enter image description here

1

在2017年VS(C++)有一个复选框这一点。

工具|选项|文本编辑器| C/C++ |格式|压痕|保留的意见

取消选中它固定恼人的评论自动格式化缩进。 也许同样的选项,在2015年VS

+0

存在选项并在VS 2015确确实实存在,至少在C++,它解决了这一问题对我来说。感谢您的回答! – dbeachy1