How to uncomment multiple lines of code in Visual Studio
I did a ctrl K + ctrl C (adds //
to a line) on a lot of lines of code that I need uncommented. What is the quick key method to uncomment code in Visual studio?
Ctrl+K, Ctrl+U removes the //
comments
I believe it is Ctrl + K, Ctrl + U.
Ctrl + K, Ctrl + U.
There is also a button for it on the Standard toolbar.
If you're using Resharper, there is a much nicer alternative:
just
right Alt + /
for both
By using this single shortcut, you can simply toggle between commenting/uncommenting code, without having to remember/switch between two shortcuts for each.