Are there comment and uncomment buttons that work while you're editing a css file?
在编辑css文件时是否有注释和取消注释按钮?
/* #content h2 {
color: #000;
font-size: 18px;
margin:5px 0px 5px 0px;
} */
2 个解决方案
#1
6
You can record your own macros in VS.
您可以在VS中录制自己的宏。
This article might help you (it's for VS2008 but it's same in VS2010):
这篇文章可能会对你有帮助(这是VS2008,但它在VS2010中是一样的):
http://www.brianschmitt.com/2009/09/how-to-comment-uncomment-code-selection.html
#2
2
Unfortunately, no.
The regular comment keyboard shortcuts, Ctrl+/
or Ctrl+Shift+/
do not work in CSS files. I even have Resharper installed and it's "Comment with line comment" and "Comment with block comment" menu items are disabled while inside CSS file.
常规注释键盘快捷键,Ctrl + /或Ctrl + Shift + /在CSS文件中不起作用。我甚至安装了Resharper,并且在CSS文件内部禁用了“评论与行评论”和“评论与块评论”菜单项。
You may be able to set up your own custom macro and assign a keyboard shortcut. Or there may be a different plugin available which offers this functionality but it is certainly not build into the IDE.
您可以设置自己的自定义宏并指定键盘快捷键。或者可能有一个不同的插件可用于提供此功能,但它肯定不会构建到IDE中。
#1
6
You can record your own macros in VS.
您可以在VS中录制自己的宏。
This article might help you (it's for VS2008 but it's same in VS2010):
这篇文章可能会对你有帮助(这是VS2008,但它在VS2010中是一样的):
http://www.brianschmitt.com/2009/09/how-to-comment-uncomment-code-selection.html
#2
2
Unfortunately, no.
The regular comment keyboard shortcuts, Ctrl+/
or Ctrl+Shift+/
do not work in CSS files. I even have Resharper installed and it's "Comment with line comment" and "Comment with block comment" menu items are disabled while inside CSS file.
常规注释键盘快捷键,Ctrl + /或Ctrl + Shift + /在CSS文件中不起作用。我甚至安装了Resharper,并且在CSS文件内部禁用了“评论与行评论”和“评论与块评论”菜单项。
You may be able to set up your own custom macro and assign a keyboard shortcut. Or there may be a different plugin available which offers this functionality but it is certainly not build into the IDE.
您可以设置自己的自定义宏并指定键盘快捷键。或者可能有一个不同的插件可用于提供此功能,但它肯定不会构建到IDE中。