ziggie
ziggie

Reputation: 21

How to comment out the current line?

Is there a way (shortcut) to quickly comment out the current code line in CodeRush?

I've just moved over from ReSharper which seemed more intuitive in this matter.

And yes - I know about the "/" shortcut that comments out a selection of code. I'm looking for something that will meet my requirement without the need to select a code block.

Upvotes: 2

Views: 117

Answers (2)

Ruben Bartelink
Ruben Bartelink

Reputation: 61795

Built in VS Ctrl K Ctrl C does that job (and Ctrl K U to remove commenting)

Upvotes: 2

Alex Skorkin
Alex Skorkin

Reputation: 4274

At the moment, you need to select the entire line including the leading whitespace to make the '/' shortcut work. See this article to learn more.

Upvotes: 0

Related Questions