Visual Studio 2012:更改javascript评论样式

问题描述:

当我使用快捷方式或工具栏按钮在Visual Studio中的JavaScript文件中注释掉一行时,评论文本之前没有空格。Visual Studio 2012:更改javascript评论样式

//the way comments are currently formatted 

我想在评论文本之前自动添加空格。

// the way I want it 

如何更改默认注释格式?

+0

能够改变这一点是有用的,因为stylecop抱怨,如果你没有空格或在注释掉的代码前面按照https:/ 4放入4个斜杠/github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1005.md。 – Caltor

我不这么认为你可以做到这一点。但你可以很明显地创建一个视觉工作室扩展为