C
C#16mo ago
__dil__

❔ Disable specific formatting rule only in one class in Rider

So, I have a class that is a bit pathological in that it has a bunch of one-liner declarations. Rider puts an extra newline between them which takes a ton of space and actually makes it harder to read. I found that there's a setting for this "blank lines in declarations", but I only want this in this specific class, not anywhere else. Is it possible?
3 Replies
matkoch
matkoch16mo ago
Local .editorconfig could work But I haven't tried it... AFAIK, formatting cannot be disabled per file... only code inspections :/
__dil__
__dil__OP16mo ago
Alright, thanks
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?