Rider C# comment at start of line
Answered
Is there any way to change Rider generation of Commented Code lines?
When I use Ctrl + / to comment selected lines of code the result is to have the comment's // at the start of the line.
I can turn this off in Typescript but how do I prevent it in C#?
Thanks
Brian
Please sign in to leave a comment.
Hi Brian,
Could you please clarify what should be done on ctrl + / instead?
Kind regards,
Sofia.
My code block looks like this:
When I use the keyboard combination I get the following:
i.e. the comment starts at column 1
what I want is the following
Hi Brian,
Thank you for the detailed explanation.
To get the desired formatting, turn off the option named "Don't indent comments started at first column" in "Preferences | Editor | Code Style | C#" -> "Tabs, Indents, Alignment".
Let me know if you need assistance.
Sofia.
Great, that does it, thanks.