Restoring Visual Studio Settings

What to do when Visual Studio starts behaving weird? Sometimes it happens that Visual Studio stop displaying the Toolbox, Server Explorer or even the Properties, it's not really common but still happens quite a lot, specially if you're running Windows Vista. The quick answer to that is to restore Visual Studio Settings. Crashing might not be the only reason to restore. Maybe you just didn't configure it properly and want to go back to the original settings. Here's how you work with Visual Studio Settings.

Restore Default Settings

To restore Visual Studio defalt settings:

  • Click on Start menu;
  • All Programs;
  • Visual Studio 2005 (or 2008);
  • Visual Studio Tools
  • Visual Studio 2005 (or 2008) command prompt;

The Picture 1 shows the path.

It will open the command prompt, and all you have to do is type:

>devenv /ResetSettings

It will Restore the IDE's default settings. The next time you open Visual Studio, it will behave just like a fresh installation, which means all your configs are gone. The ones you wanted to remove and the ones you wanted to keep. You'll have to edit your IDE again to make it look like what it was before you reseted the settigns.

Saving Your Custom Settings

To save your custom settings, click on Tools > Options; on the tree view, select "Environment Options" and click on the node "Import and Export Settings" as shown on the Pircure 2. There you can see where the settings for Visual Studio are being saved. You can change the path, so it saves somewhere else. Alternatively or go directly to the path and create a copy of the file, then paste it somewhere else. This way you'll have a separate copy of your custom settings.

Loading Saved Settings

Once you have your settings saved, you can restore it to any Visual Studio. To do so, run the same command you did to reset the settings, but this time passing the path to your saved settings file:

>Devenv /ResetSettings "C:\MyFolder\MySettings.settings"

This command will open a new instance of Visual Studio with the settings stored on the given file.

"The End"

Published Wednesday, November 05, 2008 11:33 AM by tsantos
Filed under:

Comments

# re: Restoring Visual Studio Settings

Thursday, December 04, 2008 10:24 PM by Omprakash

Thanks a lot. I was tring to do the same but not found the way. This blog helped me a lot

Thanks again.

# re: Restoring Visual Studio Settings

Monday, April 06, 2009 8:42 AM by Opochitsky Dimitry

Thank You very much !

# re: Restoring Visual Studio Settings

Friday, July 03, 2009 5:35 AM by Michael Goosen

Excellent!  Worked perfectly.

# re: Restoring Visual Studio Settings

Monday, July 20, 2009 11:53 PM by Martin de Klerk

You saved my day :) Thanks

# re: Restoring Visual Studio Settings

Friday, September 25, 2009 2:48 AM by Dave Small

Alas, this no longer seems to work (at least as far as I can tell) with Vizzle 2008 C++ and 2009. The "Devenv" command is no longer among the living. I searched for it, well, everywhere, and it's no longer there.

Sure wish it was!

Would love to hear I'm wrong, believe me!

Thanks,

Dave

# re: Restoring Visual Studio Settings

Thursday, November 26, 2009 12:26 AM by Matt

At least in VS 2008, there's an option in the Import and Export Settings Wizard (under Tools > Import and Export Settings...) to reset all settings.

# re: Restoring Visual Studio Settings

Tuesday, January 26, 2010 12:35 AM by Chang

Thanks...It was really good help for me.

# re: Restoring Visual Studio Settings

Monday, April 18, 2011 4:48 PM by Krishna

I am running VS 2010 on Win 7 and facing a weird issue.  I cannot checkout and checkin file in Solution Explorer.  I can take the same actions in Source Control Explorer though.  Any hints?

# re: Restoring Visual Studio Settings

Tuesday, May 31, 2011 4:29 AM by weblogs.asp.net

Restoring visual studio settings.. Super :)

# re: Restoring Visual Studio Settings

Wednesday, July 13, 2011 12:52 PM by aqeel

it does not work for vs 2008

# font on visual studio “find symbol results” window - Programmers Goodies

Pingback from  font on visual studio “find symbol results” window - Programmers Goodies

# re: Restoring Visual Studio Settings

Wednesday, November 30, 2011 3:50 PM by Jack bauer

Thanks. You saved me some time

Leave a Comment

(required) 
(required) 
(optional)
(required)