Comment out multiple non-contiguous lines
Is there a way to select multiple non-contiguous lines (not caret points but entire lines)? In VS Code I am able to hold down the option key on my mac and then click multiple lines of code. Then I can comment, delete, copy etc, those lines at once. Can I do this in Rider?
Please sign in to leave a comment.
The corresponding shortcut is
Option+Shift+Click
. Triple-clicks will select the entire line.The shortcut you provided does not allow for commenting out multiple non-contiguous lines of code. I find myself doing this alot and is nice to have in VS Code. Is there a way to do this in Rider?
There is a problem related to comment out in multi carets mode.
RIDER-4772 Comment line shortcut marks only one line if lines are multiple selected
Since the fix impacts Rider backend as well, we are still working on finding an easier way to resolve it. Please feel free to vote the issue.
Type
//
and comment lines out could be the only solution currently.Looks like it’s been a problem for 7 years. Seems like basic functionality for a $150 product.