RSW*_*RSW 26 css comments visual-studio-2012
在Visual Studio 2012中,当我想使用/*和*/字符注释掉CSS文件中的一行或多行时,VS总是*/在我键入起始注释字符后立即自动添加结束注释字符.所以,如果我从这段代码开始:
.appGrid {
display: -ms-grid;
-ms-grid-columns: 120px 1fr;
-ms-grid-rows: 140px 80px 1fr;
}
Run Code Online (Sandbox Code Playgroud)
我想要注释掉这一-ms-grid-rows行,我/*在该行的开头键入.这就是我想看到的:
.appGrid {
display: -ms-grid;
-ms-grid-columns: 120px 1fr;
/* -ms-grid-rows: 140px 80px 1fr;
}
Run Code Online (Sandbox Code Playgroud)
相反,VS在*/我完成输入/*字符后立即添加字符,如下所示:
.appGrid {
display: -ms-grid;
-ms-grid-columns: 120px 1fr;
/**/ -ms-grid-rows: 140px 80px 1fr;
}
Run Code Online (Sandbox Code Playgroud)
然后我必须手动删除自动添加*/并重新添加它我真正想要的地方...在这种情况下,在我想要注释掉的行的末尾.
如何阻止VS自动添加*/字符?我在工具>选项> TextEditor> CSS中找不到任何禁用此行为的选项.
作为参考,我使用的是VS2012 Premium.
Ric*_*ich 13
我担心在Visual Studio中没有可以选择更改它,至少不是我能看到的.我有时遇到同样的问题,一般用三种方法:
第一种是最好的方法,但是如果我已经开始输入2或3就足以通过流程中断了!