设置默认操作以在带有TFS的Visual Studio 2013 Pending Changes窗口中进行比较 [英] Set default action to Compare in Visual Studio 2013 Pending Changes window with TFS

查看:134
本文介绍了设置默认操作以在带有TFS的Visual Studio 2013 Pending Changes窗口中进行比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Visual Studio 2013与TFS一起用于源代码控制.当我打开团队资源管理器">待更改"并双击更改的文件时,该文件将在编辑器中打开.查看我即将进行的更改的唯一方法是右键单击并选择与工作区版本比较.对于很长的文件列表,这很耗时.

I'm using Visual Studio 2013 with TFS for source control. When I open Team Explorer > Pending Changes and double-click on a changed file, the file opens in the editor. The only way to see my pending changes is to right-click and choose Compare with Workspace Version. This gets time-consuming for a long list of files.

是否可以将默认双击动作更改为与工作区版本比较? (这似乎是使用Git时的默认设置,但不适用于TFS.)

Can I change the default double-click action to Compare with Workspace Version? (That seems to be the default when using Git, but not for TFS.)

推荐答案

已检查且有效:

简单的方法是先突出显示文件,然后突出显示shift + double-click.

The simple way is highlighting the file thenshift + double-click instead.

要将比较行为设置为默认行为,只需在 .reg 文件中复制/粘贴字符串下方,然后双击它即可添加注册表项. (根据您的TFS版本相应地更改版本)

To make the compare behavior as default, just copy/past below string in a .reg file and double click it to add the registry key. (Change the version accordingly based on your TFS version)

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\TeamFoundation\SourceControl\Behavior]
"DoubleClickOnChange"=dword:00000001

这篇关于设置默认操作以在带有TFS的Visual Studio 2013 Pending Changes窗口中进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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