Consider a snippet of CSS code from a .css file in Visual Studio 2010 to be commented out.
Normally Ctrl + E , Ctrl + C will comment your selected HTML and other source code.
But highlighting CSS code & executing that shortcut combo results in a warning message:
The key combination is bound to command (Comment Selection) which is not currently available.
Is there a toolbar or keyboard shortcut in Visual Studio 2010 to comment the highlighted CSS text for you?
Comment Selection command is not available for css files.
However, you can create a simple macro and assign a keyboard shortcut to it…
To ‘uncomment’ the selection use another simple macro: