To comment or uncomment a block of code with a line comment
- Select a block of code in the text editor, or position the caret at the line that you're going to comment out:
- On the main menu, choose ReSharper | Edit | Comment With Line Comment, or press Ctrl+/
To comment or uncomment a block of code with a block comment
- Select a block of code in the editor:
- On the main menu, choose ReSharper | Edit | Comment With Block Comment, or press Ctrl+Shift+/
Tip
If no selection is made, the opening block comment /* and the closing block comment */ strings are inserted immediately before and immediately after the caret position.
