Macro in visual Studio 2010 that loads settings file

macros, visual-studio, visual-studio-2010

Solution

This is a macro that works for me.

Sub MySub()
    DTE.ExecuteCommand("Tools.ImportandExportSettings", "/import:""<full path to settings file>""")
End Sub

Some Docs here

Problem

I'm just looking for a way (maybe a macro?) to load a settings file. Ideally I'd like to be able to run this as a shortcut from the desktop too. I googled it, but maybe I didn't hit the right keywords.

Original source