© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
no >> body

dotnet format and jetbrains rules

I'm wondering if it is possible for
dotnet format
dotnet format
to include ReSharper rules from .editconfig.

I have .editconfig with a mixture of standard and JetBrains rules in my project.
So, for example, I have the rule:
resharper_max_initializer_elements_on_line = 4
resharper_max_initializer_elements_on_line = 4

And I have an object with 4 initializers in a row.
When I run
dotnet format --verify-no-changes
dotnet format --verify-no-changes
, it shows me I need to move all initializations on the separated lines.
\Tests\Queries\GetProcessingStatusTests.cs(26,43): error WHITESPACE: Fix whitespace formatting. Replace 1 characters with '\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s'.
\Tests\Queries\GetProcessingStatusTests.cs(26,43): error WHITESPACE: Fix whitespace formatting. Replace 1 characters with '\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s'.
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

❔ Enforcing dotnet format in CI/CD
C#CC# / help
3y ago
❔ dotnet start, and profiles
C#CC# / help
3y ago
❔ Jetbrains Rider Config
C#CC# / help
3y ago
❔ Certifications for dotnet and aspnetcore
C#CC# / help
3y ago