Visual Studio 2012:更改javascript注释样式

Visual Studio 2012:更改javascript注释样式,javascript,comments,visual-studio-2012,code-formatting,spaces,Javascript,Comments,Visual Studio 2012,Code Formatting,Spaces,当我在VisualStudio中使用快捷方式或工具栏按钮注释掉javascript文件中的一行时,注释文本前没有空格 //the way comments are currently formatted // the way I want it 我想有一个空间自动添加之前的评论文本 //the way comments are currently formatted // the way I want it 如何更改默认的注释格式?我不认为您可以这样做。但是您显然可以为此创建一个visu

当我在VisualStudio中使用快捷方式或工具栏按钮注释掉javascript文件中的一行时,注释文本前没有空格

//the way comments are currently formatted
// the way I want it
我想有一个空间自动添加之前的评论文本

//the way comments are currently formatted
// the way I want it

如何更改默认的注释格式?

我不认为您可以这样做。但是您显然可以为此创建一个visual studio扩展

,能够更改这一点是很有用的,因为如果您没有空格或在注释掉的代码前面按添加了4个斜杠,stylecop会抱怨。