Vertical split cshtml window in VS2013

In VS2013, I want to view the same cshtml file in two windows side by side (i.e. vertically). I know how to make a horizontal split, but that's not what I'm here for.

The usual approach is to duplicate the tabs ( WINDOW, New Window ) for the file, and then create a new vertical tab group.

However, I cannot find a way to duplicate the cshtml tab, as the New Window menu item is disabled for this file type.

It works great for .cs and even .js files. I tried to assign a key combination for Window.NewWindow , but it will not work for cshtml files.

Any suggestions?

+6
source share
1 answer

To enable the "New Window" for cshtml, you can only change the "Single Code Window" 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 some reason, and the 12.0_Config change is subject to overwriting the next time VS is updated, but you can try how it works.

+18
source

Source: https://habr.com/ru/post/951147/


All Articles