当我在安装了Resharper 9.0.0.0的Visual Studio 2015中保存C#文件时,我查看并搜索了禁用注释缩进的方法.
在开始编写实际代码之前,我想要伪代码.然而,我一直在调整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;
}
Run Code Online (Sandbox Code Playgroud)
当我保存CTRL+ s它结果是这样的:
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 …Run Code Online (Sandbox Code Playgroud)