I work in a codebase where for historic reasons not all projects have identical coding conventions. In fact, within a single .sln I have projects requiring different naming conventions.
Is there a way to have resharper use different settings based on which project the file I'm editing lives in?
If you change any settings, your change is saved in a settings layer and ReSharper applies it overriding the corresponding default setting. Initially, ReSharper suggests three layers, in which you can save your preferences: This computer, Solution team-shared, and Solution personal.
Install: 1 Download the ReSharper installer. 2 Run the ReSharper installer you have downloaded and follow the instructions in the installation wizard. 3 Review the ‘Available Products’ and select ‘Install' for the products you want to install. ... 4 You will see the following when the installation is complete.
In the Visual Studio menu, choose ReSharper | Options. In the Options dialog that appears, select a node in the left pane and configure settings in the right pane. Use the search box in the left top corner to find a specific preference.
Use the search box in the left top corner to find a specific preference. Click Save in the Options dialog to apply the modifications and let ReSharper choose where to save them, or save the modifications to a specific settings layer using the Save To list. For more information, see Manage and share ReSharper settings.
Since ReSharper 6.1 you can finally have per project settings!
Basically, all you need to do is to create a file named <project file name>.DotSettings
, e.g. MyUnitTest.csproj.DotSettings
.
See this blog post for more info.
Check out the Resharper Settings Manager tool
You'll need to first install the ReSharper Power Toys to use it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With