Option to quickly create a comment block
The only feature that I have missed since I switched to Resharper++, from VisualAssist, are the following intuitive shortcuts. I wish Resharper could have the same feature
1) If a text block is selected, then / will directly prepend // in front of each line, to transform the block into a set of commented lines
Like:
if (foo)
callSomething();
to// if (foo)
// callSomething();
2) If a text block is selected, then * will directly surround the code block with /* (…) */
if (foo)
callSomething();
to
/*
if (foo)
callSomething();
*/
Please sign in to leave a comment.
Thanks for the suggestion, filed RSCPP-36247
How does VAX behave when you select a comment and try to comment it again with ‘*’ or ‘/’?
R# has editor actions for commenting/uncommenting a selection (ReSharper | Edit | Comment with Line/Block comment), but I agree that using a mnemonic character might be more convenient.
When trying to comment it again with ‘*’ or ‘/,’ VAX uncomments the block, which is also convenient.