Open Visual Studio - Tools > Options.
Then go to General Page of Environment and click the Manage File Associations button.
A Window in the control panel will be opened(Control Panel\Programs\Default Programs\Set Default Programs\Set Program Associations).
Select Extensions you want to associate to Visual Studio 2012/2013 and click the Save button.