【发布时间】:2017-10-09 12:24:43
【问题描述】:
当我在安装了 Resharper 9.0.0.0 的 Visual Studio 2015 中保存 C# 文件时,我已经查看并搜索了禁用 cmets 缩进的方法。
我想在开始编写实际代码之前先编写伪代码。但是,我一直在调整 Visual Studio 和 Resharper 的设置,但无济于事。因此,例如,我希望 cmets 看起来像:
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 + 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 constructive message.
return input;
}
如何禁用自动格式化?
【问题讨论】:
标签: c# visual-studio comments resharper auto-indent