Here’s a quick timesaving keyboard shortcut that works in all Visual Studio versions to quickly comment and uncomment a line or selection of code.
Quick Comment
Press Ctrl + K C. You don’t need to select the whole line and VS will detect the type of code and use the correct type of comment.
Quick Uncomment
Press Ctrl + K U.
94cbca8d-caf7-49e9-b5c6-47a57d6158b5|0|.0