Switch is an Addin for Visual Studio 2008, 2010 and 2012 that lets you quickly switch between related files. Typically you set up the Switch command somewhere easily accessible, and then just hit it everytime that you want to flick between related files. Here’s some examples of what it’ll switch between:
- C++ Files (cpp to h etc).
- WinForms Code-behind and Designer
- WPF/Silverlight/Windows Phone XAML and Code-behind
- ASPX Markup and code-behind
- Interface and implementation
Visual Studio 2012 Issues
Some people have noticed that if they had the Visual Studio 2012 RC installed and then upgraded to RTM, then the installation doesn’t work for VS 2012. In this case, move the files from the Addins folder of the ‘Visual Studio 2012′ folder in your Documents directory to the ‘Addins’ folder of the ‘Visual Studio 11′ folder.
Note: The instructions below apply equally to Visual Studio 2008, 2010 and 2012.
To configure switch, first go to the ‘Tools > Customise’ menu. Choose ‘Commands’ and move the selection in the list of commands to the bottom of the window:
Now choose ‘Add Command’ – Switch will be located in the ‘Addins’ group:
Hit OK – Switch will now be available from the main menu bar. You can also configure hotkeys for Switch through the same interface.
Switch is available on the Visual Studio Gallery: http://visualstudiogallery.msdn.microsoft.com/e50c0328-97a1-4842-8821-f0a82640245a
There’s an article on the CodeProject describing how to create Visual Studio Addins – this article describes how Switch was created: http://www.codeproject.com/Articles/324611/Extending-Visual-Studio-Part-2-Creating-Addins