Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transfer all ReSharper Settings between PCs

I was wondering if there is a way to copy ALL my settings from ReSharper (including the StyleCop for ReSharper settings and the keyboard bindings I have set for ReSharper) from one PC to another?

like image 653
Chris Watts Avatar asked May 19 '09 22:05

Chris Watts


People also ask

How do I share my ReSharper settings?

By default, you can share ReSharper settings per solution using the 'Solution team shared' layer — the only thing you need to do is to put the *. dotSettings file under version control. If you want to share settings in other ways, you would need to learn how to create new setting layers, import and export them.

How do I import ReSharper settings to Rider?

If you want Rider to use the same 'This computer' settings file as ReSharper, select Synchronize machine-wide Rider and ReSharper settings on the Tools | ReSharper page of JetBrains Rider settings Ctrl+Alt+S .

What is DotSettings file?

dotSettings contains project or solution specific settings that can be shared with the team, e.g. naming standards or braces layout. If you wish to share these amongst teams then the file should be included.


2 Answers

Since the export option within Resharper is only for code styles, you'll need to be a bit craftier for all settings.

From Peter Ritchie's blog...

...the settings are stored in "%userprofile%\application data\jetbrains\resharper\v4.0\vs9.0". There are a couple of xml files in there that store your settings. Before you upgrade to the latest build, just copy those to another directory.

It's very likely that the format of these files has changed since the last build so copying the backups over the new version could possibly make Resharper to blow-up. So, use with caution.

I have Resharper 4.1 so instead of "...\v4.0\vs9.0" it's actually "...\v4.1\vs9.0" (obvious, I know, but worth mentioning).

I'm not sure about StyleCop settings, but this should work for most other settings (keyboard scheme, code completion settings, etc...).

like image 77
Steve Dignan Avatar answered Sep 23 '22 18:09

Steve Dignan


There is a R# settings manager plugin for resharper that stores all of this I think, including stylecop settings

like image 37
Daniel Powell Avatar answered Sep 26 '22 18:09

Daniel Powell