Harald
Harald

Reputation: 1037

Vertical split of cshtml window in VS2013

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?

Upvotes: 7

Views: 1884

Answers (1)

Sergey Vlasov
Sergey Vlasov

Reputation: 27930

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.

Upvotes: 19

Related Questions