Reputation: 6030
Are there comment and uncomment buttons that work while you're editing a css file?
/* #content h2 {
color: #000;
font-size: 18px;
margin:5px 0px 5px 0px;
} */
Upvotes: 11
Views: 2985
Reputation: 15915
You can record your own macros in VS.
This article might help you (it's for VS2008 but it's same in VS2010):
http://www.brianschmitt.com/2009/09/how-to-comment-uncomment-code-selection.html
Upvotes: 6
Reputation: 45283
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.
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.
Upvotes: 2