In VS2013 I want to view the same cshtml
file in 2 windows side by side (i.e. vertical split). I know how to do a horizontal split but that's not what I'm after here.
The usual approach is to duplicate the tab (WINDOW, New Window
) for the file and then create a new vertical tab group.
However, I cannot find a way to duplicate a cshtml
tab, since the New Window
menu item is disabled for that file type.
It works fine for .cs
and even .js
files.
I tried to assign a key combo for Window.NewWindow
, but it still won't work for cshtml
files.
Any suggestions?
Developer Community. In Visual Studio Code, there is a Split Editor Right feature in the upper right hand corner of the screen, which essentially takes the active code tab and creates another split view on the right. This is a good feature as I may wish to view different part of code within the same file.
From the Window menu, select Remove Split.
To enable "New Window" for cshtml you can change "Single Code Window Only" from 1 to 0 in the registry key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\Languages\Language Services\HTMLX.
It was probably disabled for a reason and changing 12.0_Config is prone to overwrites on next VS update, but you can try how it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With