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
Installing Switch
To install Switch, download the installer from the Switch Page on Visual Studio Gallery, or the Switch Setup zip attached to this page, and run the installer.
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.
Configuring Switch
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.
Other Links
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



Trying to follow the link to http://www.dwmkerr.com/wp-content/uploads/2012/12/Switch.zip produces a 500 Internal Server Error.
Hi Rami – thank you VERY much for letting me know about this – I’ll look over the issue today and reply here again once it’s fixed – thanks again for the heads up
Fixed – thanks for the heads up
Hi! Nice stuff, but your Visual Studio msi package doesn’t work. I used installer from Code Project article.
Thanks, I’ll look into this and sort it out!
The package is fixed now
Pingback: Switch Updated | dwmkerr.com
How do I assign it to a key-combo?
In Visual Studio, you go to Tools > Customise.
On the dialog that appears, choose ‘Keyboard…’.
Now you have the options page open in the Keyboard section, in the ‘Show commands containing’ box, type in ‘switch’.
In VS2010, you’ll see a command named ‘Switch2010.Connect.Switch2010′, in VS 2012 you’ll see ‘Switch2012.Connect.Switch2012′ – select the command and then in the box under the text ‘Press shortcut keys’, enter your shortcut key. Now press ‘Assign’ and OK – all done!