Multiple Views of the Same Document Window

Menu:  Window -> New Window
Command:  Window.NewWindow
Versions:  2008,2010
Published:  5/20/2010
Code:  vstipEnv0016

 

SPECIAL NOTE FOR VB USERS:

This feature is turned off by default in VB.  There is a lot of history and reasoning behind this but the long and short of it is that this was fixed for 2010 but time ran out and it wasn't tested.  So you CAN turn this on for VB but you DO SO AT YOUR OWN RISK.  If you do decide to turn it on and get some funkiness make sure to let me know so I can pass it along to the appropriate team.  Special thanks to my friend Dustin Campbell for supplying the history and the fix. 

 

Okay, to fix this go to "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Languages\Language Services\Basic\" and rename the "Single Code Window Only" key to something like "[your initals here] Single Code Window Only".  In my case here is what I did:

image

image

 

Now restart Visual Studio and you are good to go for the rest of this post :)

 

 

 

Doing Multiple Views

So I was checking my email the other day and noticed a thread started by the legendary Deborah Kurata concerning the Window -> New Window menu item.  This is how it works:

 

SIDE NOTE:  If you haven't checked out Deborah Kurata's work definitely do so.  I have been reading her work a long time and it is awesome!

 

Open a document window

image

 

Now go to Window -> New Window on the Menu Bar and you will get a duplicate window of the current document:

image

 

It adds ":1" to the existing document tab text and creates a new document tab.  You can apparently do this ad infinitum (or at least up to 50, which is all I test to):

image