Comment with Line/Block Comment

You can quickly comment any block of C# code with a line or block comment.

To comment a block of code:

You can also use Ctrl + / to quickly comment the line of code where the caret is located (even if no block code is selected). In the same circumstances, pressing Ctrl + Shift + / inserts the opening block comment /* and the closing block comment */ strings immediately before and immediately after the caret's position.

To uncomment a line (or several lines) of code: