For Visual Basic, HTML and JScript and RDL Expression, the Window > New Window
option mentioned in PaulB's answer is disabled.
However an option can be changed in the Registry to enable the menu item.
All other languages do not restrict to a single code window so you can use PaulB's answer without editing the registry.
Enabling New Window in Windows Registry.[1] [2]
Go to the following registry key. This example is for Basic (Visual Basic), but the key is also there for HTML, JScript and RDL Expression.
- 64-bit OS:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Languages\Language Services\Basic
- 32-bit OS:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Languages\Language Services\Basic
Find the value Single Code Window Only
and do one of the following:
- Set it to 0
- Rename the value
- Delete the value (use caution!)
This will enable the "New Window" menu item, but it may still not be visible in the menu.
Adding Menu Item
To actually see the New Window menu item I had to add it back into the menu:
- Tools > Customize... > Commands > Add Command...
- Select 'Menu Bar' the select the 'Window' menu in the dropdown
- Add Command... > Window > New Window > OK
Restoring Registry Value
Copy-paste this to notepad, save as a .reg file and import the file into your registry to restore the initial setting.
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Languages\Language Services\Basic]
"Single Code Window Only"=dword:00000001
code
,Code
,CODE
,the code
,Visual Code
,visual studio code
,Visualstudio Code
,vs code
,vs Code
,Vs code
,Vs Code
,VS code
,VS Code
,VS CODE
,VS code studio
,VS Core
,vs-code
,VS-Code
,vs.code
,vsc
,VSC
,VSC Code
,VSCod
,vscode
,Vscode
,VsCode
, andVSCode
(thanks, Microsoft marketing). They are in no way the same thing.