如何在 Visual Studio 的源代码管理资源管理器中跳转到文件 [英] How to jump to a file in the Source Control Explorer in Visual Studio

查看:146
本文介绍了如何在 Visual Studio 的源代码管理资源管理器中跳转到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢 Visual Studio 2010 的 PowerCommands 扩展的解决方案资源管理器 > 右键单击​​ >打开包含文件夹"功能.我想要相当于跳转到源代码管理资源管理器中的位置"功能.如何找出给定打开文件或解决方案资源管理器中的文件(或解决方案导航器中的文件)在 TFS 中的位置 生产力电动工具扩展)?

I love the Solution Explorer > Right-click > "Open Containing Folder" feature of the PowerCommands extension for Visual Studio 2010. I want the equivalent of a "Jump to location in Source Control Explorer" feature. How can I find out the location in TFS of a given open file, or a file in the solution explorer (or a file in the solution navigator in you have the Productivity Power Tools extension)?

最好的答案是点击几下鼠标而不使用键盘.下一个最佳答案是热键映射.

The best answer would be a couple of mouse clicks and no keyboard. Next best answer would be a hotkey mapping.

到目前为止,我找到的唯一解决方案是使用具有在源代码管理中查找"功能的 Productivity Power Tools 扩展.可以右键单击结果列表中的文件以在源代码管理资源管理器中打开文件夹".这种解决方案的缺点是需要多次点击,如果不同文件夹中存在同名文件,搜索结果可能会匹配多个文件.

The only solution that I have found so far is to use the Productivity Power Tools extension which has the feature "Find in Source Control". A file in the results list can be right-clicked to "Open folder in Source Control Explorer". The drawbacks to this solution is that is takes many clicks, and the search results can match more than one file if files exist with the same name in different folders.

推荐答案

尝试 Visual Studio 扩展 VSCommands for Visual Studio 2012.它具有称为在 TFS 中定位的功能.这将向解决方案资源管理器添加新按钮在 TFS 中定位,它会在 TFS 源代码管理资源管理器中打开活动的选定文件/文件夹.

Try Visual Studio extension VSCommands for Visual Studio 2012. It has feature called Locate in TFS. This will add new button to Solution Explorer Locate in TFS which opens active selected file/folder in TFS Source Control Explorer.

这篇关于如何在 Visual Studio 的源代码管理资源管理器中跳转到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆