VS2013中CSHTML窗口的垂直拆分 [英] Vertical split of cshtml window in VS2013
问题描述
在VS2013中,我想在2个窗口中并排查看相同的cshtml
文件(即垂直分割).我知道如何进行水平分割,但这不是我想要的.
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.
通常的方法是复制文件的选项卡(WINDOW, New Window
),然后创建一个新的垂直选项卡组.
The usual approach is to duplicate the tab (WINDOW, New Window
) for the file and then create a new vertical tab group.
但是,我找不到复制cshtml
选项卡的方法,因为对该文件类型禁用了New Window
菜单项.
However, I cannot find a way to duplicate a cshtml
tab, since the New Window
menu item is disabled for that file type.
它对于.cs
甚至.js
文件都可以正常工作.
我尝试为Window.NewWindow
分配一个组合键,但对于cshtml
文件仍然无效.
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.
有什么建议吗?
推荐答案
要为cshtml启用新窗口",可以在注册表项HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio \中将仅单个代码窗口"从1更改为0. 12.0_Config \语言\语言服务\ HTMLX.
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.
它可能由于某种原因被禁用,更改12.0_Config容易在下一个VS更新中被覆盖,但是您可以尝试一下它的工作方式.
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.
这篇关于VS2013中CSHTML窗口的垂直拆分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!