Resharper c++: toggle a single line comment for a selected block

Viewed 122

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.

1 Answers

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

Related