Home > Mobile >  Resharper c : toggle a single line comment for a selected block
Resharper c : toggle a single line comment for a selected block

Time:01-12

The shortcuts related to comments are:

ctrl k ctrl u/c to un/comment selection.

ctrl shift / or ctrl k ctrl / to toggle a comment.

When a block is selected, it will always use /*...*/, which I can do myself. I'd like it to toggle a line comment // for each block line.

CodePudding user response:

ReSharper has two comment actions, "Comment with Line Comment" and "Comment with Block Comment". Use "Comment with Line Comment" (Ctrl Alt /) in your case.

  •  Tags:  
  • Related