Rider: reformat C# comments, space after double slashes
I've enabled the setting Editor > Code Style > C# > Space after ‘//’ in comments.
My code deliberately contains a comment line without a space after ‘//’. I mark the line (selection), and choose Context Actions: Reformat and cleanup… > Detect code style settings.
This gives me: “Looks like your code conforms to current settings”.
Why isn't the missing space detected? I cannot reformat to the desired format as well…
Please sign in to leave a comment.
Hello Andreas,
Thank you for contacting Rider support.
I see that the “Detect code style settings” action indeed doesn't report the violation of the “Space after ‘//’ in comments” rule. I registered this issue to our tracker: RSRP-501689 Detect Code Style action doesn't respect the "Space after '//' in comments".
Meantime the Reformatting itself does work fine for this rule for me. Does it work for you if you follow these steps?
Have a nice day!
Hi Dmitry, I can successfully reformat the file with the method you discribe.
Have a nice day!