Comment and Uncomment for CSS Editor in Visual Studio 2011 Developer Preview

CSS editor in Visual Studio 2011 introduced many new features for web developers and it helps developers to work with CSS more efficiently and organize way. I talked about such two features over here http://abhijan.me/yCL4LH and http://abhijan.me/zvnmqu . CSS editor has another enhancement, which is “supporting direct code comment and uncomment”.

Prior to Visual Studio 2011, you have had to comment out CSS by manually typing /* and */ for code block. But in Visual Studio 2011 you will find  comment and uncomment button enable in tool bar as shown in below.

image

You can also use standard shortcut key ( CTRL + K + C ) for commenting out the code block and (CTRL + K + U ) for uncommenting the code block.

Hope this helps !

Cheers !

Abhijit

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.