4 min read

Whenever I get a new computer, or reinstall Windows and such, I realize and remember that I again have to adjust all the settings to just the way I like them, and usually don’t have time for it. This consists of keyboard shortcuts for the most part on a new setup, but I’m  also a big fan of some Resharper features. Resharper can really slow down Visual Studio with defaults, because they enable a lot of features, which although cool and useful, aren’t worth the performance trade-off for me. I also like Visual Studio’s IntelliSense better than Resharper’s, but Resharper has better suggestions for code refactoring, so tweaking all these to work the way I like takes time. Luckily, they can be exported, so next time I have to do this, I just import the settings.

Having a set of Team Settings or sharing your optimized settings with a person new to Visual Studio are also worth considering.

 

Exporting Visual Studio settings:

Click Tools -> Import and Export Settings...

Exporting and Importing Visual Studio and Resharper Settings 1

In the Import and Export Settings Wizard select Export selected environment settings, and click Next

Exporting and Importing Visual Studio and Resharper Settings 3

By default it will select all the settings except for information on settings files location, which is considered sensitive. If you already know the groups of settings you modified from defaults, and maybe want to only share those with someone, then you can select just those, otherwise leave everything selected and click Next

Exporting and Importing Visual Studio and Resharper Settings 5

Choose a location to save the the .vssettings file and click Finish

I recommend skimming through the exported file in Notepad++ or your favorite editor, just to get an idea of what’s there and make sure there’s really no sensitive information present.

 

Importing Visual Studio settings:

Click Tools -> Import and Export Settings...

Exporting and Importing Visual Studio and Resharper Settings 1

In the Import and Export Settings Wizard select Import selected environment settings, and click Next

Exporting and Importing Visual Studio and Resharper Settings 9

Unless it’s a brand new installation of Visual Studio or you’re sure the settings you’ll import are what you want, it’s usually a good idea to save the current settings, and you can do that on this step, then click Next

Exporting and Importing Visual Studio and Resharper Settings 11

Click Browse and select your .vssettings file

Exporting and Importing Visual Studio and Resharper Settings 13

Click Next, then review the settings you want to import, and click Finish

 

Exporting Resharper Settings:

Click Resharper -> Manage Options

Exporting and Importing Visual Studio and Resharper Settings 15

Resharper’s settings are hierarchical, you can have settings specific to your computer, then some settings shared with your team on a per-project basis, and personal settings per project.

Select the ones you’ve configured and want to export, then click Import and Export -> Export to File

Exporting and Importing Visual Studio and Resharper Settings 17

Select the settings you want to export, and click OK

Exporting and Importing Visual Studio and Resharper Settings 19

 

Importing Resharper Settings:

Click Resharper -> Manage Options

Exporting and Importing Visual Studio and Resharper Settings 15

Resharper’s settings are hierarchical, you can have settings specific to your computer, then some settings shared with your team on a per-project basis, and personal settings per project.

Select the ones you’ve configured and want to export, then click Import and Export -> Import from File...

Exporting and Importing Visual Studio and Resharper Settings 17

Select the settings you want to import and click OK

Exporting and Importing Visual Studio and Resharper Settings 25

 

My settings:

Exported-vssettings

Resharper-dotsettings