问题
I'm using visual studio 2013. The company I work for has changed domain names (eg from abc.com to ayebecee.com) which obviously means that a new login profile has to be created etc. Now I started up visual studio but all the addons I installed and settings are 'gone'. Basically I need to know where the settings and addons are stored so that I can copy them to my new windows profile.
回答1:
Try copying the files over from the old profile in the following locations to your new username's profile:
From:
C:\Users\[OldUSERNAME]\AppData\Roaming\Microsoft\VisualStudio
To:
C:\Users\[NewUSERNAME]\AppData\Roaming\Microsoft\VisualStudio
From:
C:\Users\[OldUSERNAME]\AppData\Local\Microsoft\VisualStudio
To:
C:\Users\[NewUSERNAME]\AppData\Local\Microsoft\VisualStudio
回答2:
**Update for latest version**
Visual Studio 2015:
%USERPROFILE%\Documents\Visual Studio 2015
Visual Studio 2017:
%USERPROFILE%\Documents\Visual Studio 2017
Also have a look at these folders:
%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\...
%USERPROFILE%\AppData\Roaming\Microsoft\VisualStudio\...
回答3:
Make an Export of your Visual Studio Settings... Tools -> Import And Export Settings Afterwards you can import it to your VS where you want have this settings.
来源:https://stackoverflow.com/questions/25031023/where-are-the-visual-studio-settings-stored