views:

1818

answers:

4

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?

+1  A: 

StyleCop settings are not stored in the resharper plugin. they are in the stylecop directory and in an xml file (Settings.StyleCop).

Ali Shafai
Stylecop for resharper* there is a difference
Chris Watts
+2  A: 

You can Export/Import your ReSharper Code Style or put it on the network and share between multiple computers. To do so:

From VS Menu select ReSharper -> Options then in Option dialog select Languages/Common/Code Style Sharing.

Not sure if it's exactly what you're looking for.

Vadim
Yeah, i had that in my original post but someone edited it out.
Chris Watts
+15  A: 

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...).

Steve Dignan
Yeah, if moving between versions, best to do a diff on the fresh XML file and your source settings file. I'm actually about to move settings from 4.5 on my desktop to 5.0 on my laptop.
Jay
+1  A: 

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

Daniel