Set default action to Compare in Visual Studio 2013 Pending Changes window with TFS [duplicate]

橙三吉。 提交于 2020-01-22 01:53:29

问题


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.

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.)


回答1:


Checked and that works:

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

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


来源:https://stackoverflow.com/questions/45693493/set-default-action-to-compare-in-visual-studio-2013-pending-changes-window-with

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!