0
When working on multi-developer .NET projects, enforcing consistent code formatting and inspection severity settings is critical. ReSharper supports layered settings that allow developers to share project configuration files directly through source control.
Understanding ReSharper Settings Layers
ReSharper uses a hierarchical settings system:
- This Computer: Personal global settings applied to all solutions on your machine.
- Solution Personal: Settings specific to you for a particular solution (not committed to Git).
- Solution Team-Shared: Shared settings stored in a
.DotSettingsfile meant to be committed to version control.
How to Configure Team-Shared Settings
- Open ReSharper > Options.
- Notice the Save To button at the bottom of the Options dialog.
- Select Solution [Name] team-shared when modifying inspection rules or formatting settings.
- Commit the newly created file named
YourSolution.sln.DotSettingsto your Git repository.
Example Settings Layer File structure (.DotSettings)
True
Benefits
By committing team-shared settings, every developer opening the solution immediately inherits the team's formatting standards without manual setup.