Deborah's Developer MindScape






         Tips and Techniques for Web and .NET developers.

May 17, 2010

Visual Studio Window | New Window

Filed under: C#,VB.NET,Visual Studio @ 10:12 am

With the new multi-monitor support, an underused Visual Studio menu option just became much more useful. You can use the Window | New Window option to view a second code window with the same code file. The result looks like this:

image

You can then drag one of the code windows so they are side by side or drag one to your other monitor. This allows you to view two different parts of your code file at the same time.

HOWEVER, the Window | New Window option is disabled when working with Visual Basic code files. The feature was put in, but not fully tested. So it was disabled.

If you really want to use this feature in VB.NET, you can remove the registry entry that disables it.

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Languages\Language Services\Basic]
"Single Code Window Only"=dword:00000001

USE AT YOUR OWN RISK!

I submitted a Connect Issue to have this put in by default. You can vote for it here:

https://connect.microsoft.com/VisualStudio/feedback/details/559243/enable-the-windows-new-window-feature-for-visual-basic

Enjoy!

5 Comments

  1.   Adam — May 20, 2010 @ 4:26 am    Reply

    On 32-bit Windows (on my machine anyway), the registry entry is at:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Languages\Language Services\Basic]

    (i.e., remove Wow6432Node from the path)

  2.   DeborahK — May 20, 2010 @ 9:59 am    Reply

    Hi Adam,

    Yes, on 64-bit machines, the registry entry is as I have shown. On 32-bit machines, it is as you have shown.

    Thanks!

  3.   Jay R — June 2, 2010 @ 5:38 pm    Reply

    I’ve got a Windows 2000 box that had VS 2008 on it … and this worked fine WITHOUT doing any registry hacks.

    I just drag the window out of the window frame and it creates a new window OUTSIDE of the VS 2010 window.

    No probs.

  4.   DeborahK — June 3, 2010 @ 3:23 pm    Reply

    Hi Jay –

    Are you using C#? This feature works with modifying the registry in C#.

  5.   James — August 9, 2012 @ 6:57 am    Reply

    The Connect entry seems to have gone.

RSS feed for comments on this post. TrackBack URI

Leave a comment

© 2021 Deborah's Developer MindScape   Provided by WPMU DEV -The WordPress Experts   Hosted by Microsoft MVPs