识别 Visual Studio 选项卡列表中的视图
在 MVC 中,各个控制器可能有许多具有相同名称的视图(例如 Index.cshtml
或 Edit.aspx
)。
根据您的工作风格,您最终可能会在 Visual Studio 中打开一些选项卡,最后出现一个如下所示的选项卡列表:
Index.cshtml|Index.cshtml|SomeController.cs|Edit.cshtml|Index.cshtml|Edit.cshtml|
可以将鼠标悬停在选项卡上并等待上下文提示显示,但我想知道是否有人有一种技术或插件,可以更容易地一眼识别出正确的文件(即 SomeController
的 Index.cshtml
)?
In MVC you are likely to have many views with the same name (such as Index.cshtml
or Edit.aspx
) for the various controllers.
Depending on your working style, you might end up with a few tabs open in Visual Studio ending up with a tablist that looks like:
Index.cshtml|Index.cshtml|SomeController.cs|Edit.cshtml|Index.cshtml|Edit.cshtml|
It is possible to hover over the tabs and wait for the context hint to show up, but I was wondering if anyone had a technique or plugin where the correct file could be more easily identified at a glance (i.e. the Index.cshtml
for the SomeController
)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Visual Studio 2010 Pro Power Tools 中可能有一个扩展会让你的生活更轻松。 Document Well 2010 Plus 允许您配置文档选项卡。
There may be an extension in the Visual Studio 2010 Pro Power Tools that will make your life easier. The Document Well 2010 Plus allows you to configure the document tabs.
我认为 http://www.tabsstudio.com/ 可能有您正在寻找的行为。
安装时,您应该打开“Tabs Studio Add-in Manager”并选中“Disambiguator”。
当您打开具有相同名称的不同文件时,它将显示其包含的文件夹。
I think http://www.tabsstudio.com/ may have the behavior you are looking for.
When you install it you should open the 'Tabs Studio Add-in Manager' and check 'Disambiguator'.
When you have different files open with the same name, it will display it's containing folder.