Switch is an Addin for Visual Studio 2008, 2010 and 2012 that allows you to switch between C++ source and header files, WinForms code and designer, XAML and codebehind and more. With one button press, or keyboard shortcut, you can easily flick between related files.
Thanks for this wonderful extension, in general, it works like a charm! I am migrating from QtCreator right now and I couldn't believe VS 2012 does not support this very basic operation ootb ...
I must say though, that the initial impression is lacking. Of course you explain everything at http://www.dwmkerr.com/switch/, but maybe you want to at least present that link to the user on the first start?
And maybe you could also explain how to set the keyboard shortcut in the main article, not only in the comments ;)
Hi Marcus - just as an update, version 2.0 automatically adds itself to the main menu, the instructions have been updated in the blog post (and shortly this article) and there are now options if you need to add other types of extensions to switch between :)
Hi, can you tell me if you are 32 or 64 bit and what OS? Also, do you have visual studio installed to the default location? The installer I uploaded a few days ago has worked fine on both my dev machines, 2010 and 2012 - so I'd like to work out what's going wrong..
And it's done - the download on this page is updated. Cxx to h is supported, you can also go to Tools > Options > Switch and reconfigure yourself if you need to! The code is available at:
I'm using Windows 7 (64-bit).
I installed the latest version, selecting VS2010 and VS2012 as I have both versions installed, and Install Switch for "Just me".
In neither version of Visual Studio the Addin shows up.
However, if I go to
View > Toolbars > Customize > Keyboard
I can see Switch2010 and Switch2012 commands, I can assign keyboard shortcut
and it works.
Not sure why it is not displayed.
Thank you for Switch.
I have used Switch some time before the latest v1.2 (12/2/2012) and it had worked great in Visual Studio 2010.
However, I am trying to install v1.2 on a clean machine and I am getting Error 1309 on multiple files.
Running the msi after downloading it from it's local location here: C:\Users\rami.abughazaleh\Downloads\Switch.msi
Error 1309. Error reading from file: C:\Users\rami.abughazaleh\Downloads\program files\Switch\Switch2008.AddIn. Verify that the file exists and that you can access it.
[Abort] [Retry] [Ignore]
Retry produces the same error.
Ignore attempts to continue on to the next file, but the same error appears but with a different file path:
C:\Users\rami.abughazaleh\Downloads\Personal\Visual Studio 2010\Addins\Switch2010.AddIn
C:\Users\rami.abughazaleh\Downloads\Personal\Visual Studio 2012\Addins\Switch2012.AddIn
C:\Users\rami.abughazaleh\Downloads\Personal\Visual Studio 2008\Addins\en-US\Switch2008.Resources.dll
C:\Users\rami.abughazaleh\Downloads\Personal\Visual Studio 2010\Addins\en-US\en-US\Switch2010.Resources.dll
C:\Users\rami.abughazaleh\Downloads\Personal\Visual Studio 2010\Addins\en-US\Switch2010.Resources.dll
C:\Users\rami.abughazaleh\Downloads\Personal\Visual Studio 2010\Addins\Switch2010.dll
C:\Users\rami.abughazaleh\Downloads\Personal\Visual Studio 2012\Addins\en-US\Switch2012.Resources.dll
C:\Users\rami.abughazaleh\Downloads\Personal\Visual Studio 2012\Addins\Switch2012.dll
After installation, "C:\Program Files (x86)\Switch" is empty.
Windows 7 Enterprise 64-bit (English)
I believe this is an issue with the way the setup installer was authored with InstallShield.
I am also getting these errors. I believe the install did not place the files to install within itself and is looking for them outside the MSI. Where I work we make CDs with MSIs this way to provide our customers access to the files that get installed off of the CD.
Same here, I also tried to manually extract all files from the msi, and got the same errors. It looks like the files are not in the package, or msiexec can't extract them for some reason.
I'm running 64 bit Windows 8 Pro.