如何仅显示 Visual Studio 2010 (TFS) 中当前打开的解决方案的待定更改,而不显示所有更改的完整列表?
有没有办法强制 Visual Studio 2010 仅显示当前打开的解决方案的待定更改?我正在处理同一项目的多个分支,并更改大多数分支中的相同文件。每次手动检查待处理的更改并仔细检查是否选择了当前正在处理的文件是非常痛苦的......
is there a way to force Visual Studio 2010 to show pending changes only for the currently opened solution? I am working on multiple branches of the same project and changing the same files in most of the branches. It's so painful to check the pending changes by hand every time and double-checking if I've selected the files that I am currently working on...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
打开挂起的更改窗口。您可以找到一个工具栏按钮,用于过滤当前的解决方案。
Open the pending changes window. You can find there a toolbar button that filters on the current solution.
是的,在挂起的更改视图上,顶部的最后一个图标是“按解决方案过滤”(刷新图标旁边)。单击该按钮可将更改列表缩小到当前解决方案。
您可以在此处查看它的屏幕截图
Yes, on the pending changes view one of the last icons along the top is a "filter by solution" (next to the refresh icon). Click that to reduce the change list to the current solution.
You can see a screenshot of it here
我看到其他答案都很旧了。
在 2015 年,您可以这样做:单击 VisualSVN 菜单项,然后单击“设置工作副本根目录...”,然后您可以浏览到磁盘上的解决方案文件夹。
I see the other answers are quite old.
In 2015 you can do it like this: click on the VisualSVN menu item and then on "Set Working Copy Root..." Then you can browse to the solution folder on disk.
如果您打开挂起的更改窗口。其中一个图标用于文件夹视图。这应该有助于缩小对指定目录的更改范围。 (尽管您需要取消选择其他项目)
或
我只记得有一个选项用于选择这些项目。如果打开 Visual Studio 命令提示符,则可以使用团队基础工具通过执行以下操作来自动筛选。
项目结构示例
您可以 cd 进入 src 目录并使用以下命令来过滤对 Branch1 的待签入
If you bring up the pending changes window. One of the icons is for folder view. This should help with narrowing the changes to a specified directory. (though you will need to deselect the others)
OR
There is one option I just remembered for selecting those items. If you open your visual studio command prompt you can use the team foundation tools to auto filter by doing the following.
Example project structure
You can cd into the src directory and use the following command to filter your pending checkins to Branch1
使用“显示解决方案更改”,如下所示:(这适用于 Visual Studio 2015)
Use Show Solution Changes, as seen here: (this applies for Visual Studio 2015)