The comment slash // is indented too left (Rider)

Viewed 912

I'm using Rider, and when I comment out a line using the keymap "Comment/uncomment with Line Comment", the slash // is indented too far left and not where the actual word was appearing. Perhaps a picture can illustrate it better.enter image description here

I'd like the slash to be where the line started originally, like when you use vscode or sublimetext:

enter image description here

Sorry for the weird topic, but it has been nagging me for quite a while now and can't stop thinking about it while typing (:D). I couldn't find the setting that would change this.

2 Answers

Settings > Editor > Code Style > C# > Tabs, Indents, Alignment:

And toggle checkbox: Don't indent comments started at first column.

enter image description here

Related