About the author

Steven Harmansteven harman :: makes sweet software with computers!

For recent posts and more about me, scroll to the bottom.

Subscribe

  • Subscribe to my feed. via RSS
  • Subscribe via email via email

News

Badges

  • Subtext Project
  • Support Subtext

[How-To] Save Your Visual Studio 2003 Settings.

I've been reading through some documentation on a few of the new bells and whistles that Visual Studio 2005 has to offer, and I almost stood up in applause when I saw that importing and exporting of settings was finally going to be supported nativley in VS 2005. This developer has been wanting this for a long time.

I (like most developers) like to have my IDE configured in a very particular way. I like certain windows in a specific locations, my fonts/hilighting to be just so, I have a crazy set of keyboard shortcuts, and a host of external tools that I use on a regular basis. As you can imagine it takes quite a lot of time and effort to get all of these settings configured the way that I like them. Now think about having to re-install VS on a new machine, fresh install of Windows, a VM, or a second PC... that's a lot of wasted time doing the same work over and over again. Being a huge advocate of software reuseability this kind of repetition just drives me crazy. Since many of us (myself included) are still using VS 2003, we have to rely on some old school hackery to get the job done.

Many of the settings are stored in the windows registry, so all you have to do is find the necessary keys and save to a .REG file, and then later you can run those files to re-install the keys on the new VS install. So, fire up regedit, navigate to the key, right-click and select Export. The important keys for VS 2003 are:

  • KEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\External Tools
  • HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\FontAndColors
  • HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Text Editor
The majority of the other settings are stored in your user's Application Data directory. So just browse to C:\Documents and Settings\YOUR_USER_NAME\Application Data\Microsoft\VisualStudio\7.1\ and then save the following files:
  • Keyboard schemes and shortcuts are stored in .vsk files.
  • Toolbox data is in the toolbox.tbd file.
  • Windows layout are in the devenv.xml file.
  • Object Browser data is in the ObjBrow.dat file.
  • Various settings from things like external add-ins and packages are stored in the ExtGlobals.dat file.
Even if you're not planning on having to configure a new install of VS 2003 anytime soon... I would still recommend exporting all of your settings for backup purposes. It's normally not something we think about, until its too late.

NOTE: The above mentioned registry keys and folder locations are also valid for VS 2002... you just need to replace the "7.1" with "7.0" in the path to each item.

What others are saying.

# Save Your Visual Studio 2003 Settings
Gravatar you've been HAACKED
Feb 19, 2006
# HOWTO: Save your VS.NET 2003 settings
# Save VS.NET 2003 IDE Settings...
Gravatar Rexiology::Work
Feb 20, 2006
 
Thanks Steve! you not only saved the IDE settings, but also saved a lot of people's time... ...
# Save VS.NET 2003 IDE Settings...
Gravatar Rexiology...
Feb 20, 2006
crosspost from http://rex.la/blogs/work/
Thanks Steve! you not only saved the IDE settings,…
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Steve Harman
Feb 20, 2006
No problem Rex, I'm always glad I could help out.
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Rick Tyhurst
Apr 14, 2006
Anyone know how to import VS2003 keyboard shortcuts ( .vsk file) into VS2005 keyboard settings? I see the VS2005 settings are save in an XML file format, but I don't know the .vsk file format.

Thanks
Rick
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Steve Harman
Apr 14, 2006
Rick,
To be honest I've not yet had to worry about that as I'm sill working in VS2003... but I will be making the move to VS2005 before too long. So, if you figure out a way to import those VS2003 keyboard shortcuts, can you post a comment here and let me/my (few) readers know?

Thanks Rick!
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Marcello
May 28, 2006
Thank you for the information !
Really useful.

I would add that all the toolbar settings are stored in the file:
C:\Documents and Settings\YOUR_USER_NAME\Application Data\Microsoft\VisualStudio\7.1\1033\CmdUI.PRF

But sometimes things go wrong when I copy only that file so I keep a backup of the older 'versions'. In the future I will try also to restore the vsk file together with it.
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Chris
Jul 17, 2006
Hey, I was looking for an answer on why visual studio 2005 won't save my IDE customizations to the layout/toolbars etc that i make and i came across your site... Something SURELY must be amiss in my installation of the new IDE b/c after TWO COMPLETE customizations of my IDE i realized, oh...yeah vstudio won't remember any of my settings anymore not b/c i forget to gracefully exit the app after making the changes.

do you have any idea why it wouldn't save my view customizations? afaik i'm running the latest versions of Everything.

anyway, thanks for any ideas. for all it's power i can't believe they wouldn't have missed this simple feature. esp since EVERY ide they've released since win 3.1 remembers the custom view settings you make.

:( please help...................
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Steve Harman
Jul 25, 2006
Chris,
I'm not 100% sure I follow your issue.

I have a pretty base installation:

And VS seems to remember my very customized IDE every time... assuming I exit the application gracefully.

Could you please explain in more detail exactly what it is that you are customizing and what happens when you restart the IDE?

Sorry I couldn't be of more help.
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Fayaz
Oct 05, 2006
i could not understand you man, what exactly you want.......What you did is not a big deal. what is there in those locations.
You article says that u r writting about application settings. but you r doing some other work.........
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar amckern
Feb 26, 2007
Thanks

Got your site off a code mail list, lucky i have VS 2003 installed on more then one computer - now i can hopeful restore the issues that the lattest PSDK vcvars has caused.

Adam
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Steve Harman
Feb 26, 2007
Adam, glad you found my site... and I hope the info here will help solve your issue.

Good Luck!
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Waqas
Apr 29, 2007
You know you can save MS Word 2007 as a 2003 file. How do you save Visual Studio 2005 as a 2003 file? I ask this because I have programming code which isnt working in 2005 but worked in 2003 and i need it to work as i dont have 2003 edition. Please get back to me and let me know how i can save my forms /project as a 2003 file? Thanks

Waqas
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Steve Harman
Apr 29, 2007
Waqas,
Going between versions of Visual Studio is not like going between versions of MS Word. You have to remember that VS 2003 is built around .net 1.1, and VS 2005 is .net 2.0. Not only are the file formats different, but the framework that your code runs on is different.

There are several .net 1.1 to 2.0 converters, but I'm not aware of any that go the other way. The answer here is not to revert back to VS 2003 and .net 1.1, but to get it working in VS 2005 and .net 2.0.
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Hermien Brits
Sep 06, 2007
There is another folder with some useful information: C:\Documents and Settings\YOUR_USER_NAME\Local Settings\Application Data\Microsoft\VisualStudio\7.1

The file VCComponents.dat in this folder contains the executable path, include path etc. configured in Visual Studio. It is a plain text file, despite the .dat extension.
# re: [How-To] Save Your Visual Studio 2003 Settings.
Gravatar Guest
Jan 31, 2008
Here is all the settings documentation...
http://support.microsoft.com/kb/320851
Comments have been closed on this topic.