Restore File Associations in Visual Studio 2010

If you have both Visual Studio 2008 and Visual Studio 2010 installed on your machine, and you uninstall one of them, you loose the file associations for Visual Studio.

To restore the File associations back, follow these steps:

Open Visual Studio > Go to Tools > Options. When the Options dialog opens, looks at the lower left corner for a ‘Show all Settings’ checkbox.

Select this checkbox > Go to General Page of Environment and click the ‘Restore File Associations’ button. Click OK when done.

Here’s a screenshot

File association VS2010

Your file associations should be restored now.

Will you give this article a +1 ? Thanks in advance

About The Author

Suprotim Agarwal
Suprotim Agarwal, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook

Follow him on twitter @suprotimagarwal


slide said...

In my version of VS2010, the "Show all settings" checkbox was not there, but I _was_ still able to click the "Restore file associations" button and have it work.

Blake said...

Worked great for me. In Windows 7 I had to run Visual Studio 2010 as an administrator (Right-click VS2010 icon and select run as administrator) to be able to restore the default settings. YMMV depending on how your machine and network permissions are setup.