© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
__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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Class Designer in Rider?
C#CC# / help
4y ago
Avoid line break and wrapping (Formatting in rider)
C#CC# / help
4y ago
What is the name of this Linting rule in Rider?
C#CC# / help
2y ago
✅ How do I disable auto formatting in vscode?
C#CC# / help
9mo ago