Transfer all ReSharper Settings between PCs

C#Visual StudioResharperStylecop

C# Problem Overview


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?

C# Solutions


Solution 1 - C#

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

Solution 2 - C#

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

Solution 3 - C#

  1. Open Visual Studio
  2. Go to Resharper > Manage Options
  3. Click on Import and Export

Import and Export

  1. Click on Export to File
  2. Tick all check box

enter image description here

  1. Click on OK and save the file to your desired location

  2. To import the settings to other computer, repeat steps 1-3 and then select Import from File. You are done.

Enjoy!

Solution 4 - C#

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.

Solution 5 - C#

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

Solution 6 - C#

I have a solution that i am using!

Skydrive and junction link magic. I create a junction in the filesystem that point the settings to a skydrive folder. this way i have everywhere i use skydrive the same settings!!!

On the target pc i do the opposite.

Hope this helps.

Solution 7 - C#

Steve Dignan's answer is probably correct for 2009 version of Resharper.

In newer versions of Resharper global for PC Resharper settings are located in: %userprofile%\Appdata\Roaming\JetBrains\Shared\vAny\GlobalSettingsStorage.DotSettings.

Solution team-shared settings are in the solution folder called {Solution Name}.sln.DotSettings.

Solution's personal settings are in {Solution Name}.sln.DotSettings.user.

Source: https://resharper-support.jetbrains.com/hc/en-us/articles/115001216530-Where-to-find-DotSettings-files-associated-with-settings-layers

So to transfer settings between 2 PCs, copy settings file(s) for the appropriate layer(s) you want to transfer and that's it. Usually just copying global is enough.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionChris WattsView Question on Stackoverflow
Solution 1 - C#Steve DignanView Answer on Stackoverflow
Solution 2 - C#Daniel PowellView Answer on Stackoverflow
Solution 3 - C#YasirmxView Answer on Stackoverflow
Solution 4 - C#VadimView Answer on Stackoverflow
Solution 5 - C#Ali ShafaiView Answer on Stackoverflow
Solution 6 - C#MantzasView Answer on Stackoverflow
Solution 7 - C#KulaGGinView Answer on Stackoverflow