Visual studio comment shortcut key: Accept in HTML, C#, JS, CSS etc in Visual studio.

Ctrl + k then Ctrl + c

//a
//b                      
//c

to undo ctrl + k then Ctrl + u

a
b
c

Ctrl + Shift + /

/*a
b
c*/

to undo Ctrl + Shift + /

a
b
c

I think there is no shortcut key for this purpose in Visual Studio but If you use ReSharper you can use Ctrl + Shift + /.

Have a look at this may be useful as well.


In Visual Studio 2017 RC, simply Select the part of code you want and then press Ctrl + K + C , no need to any extension!