在 Pending Changes 视图中双击比较文件 [英] Compare files on double click in Pending Changes view

查看:33
本文介绍了在 Pending Changes 视图中双击比较文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Pending Changes"视图中双击文件时,visual studio 中是否有一种方法可以更改行为.

Is there a way in visual studio to change the behavior when I double click a file in the 'Pending Changes' view.

默认行为是,Visual Studio 在代码编辑器中打开文件,但我希望它使用最新版本打开比较"对话框.(与 TortoiseSVN 中的行为相同)

The default behavior is, that Visual Studio opens the file in code editor, but I want that it opens the 'Compare'-Dialog with the latest version. (same behavior as in TortoiseSVN)

推荐答案

有一种方法可以让它永久化,这样你就不需要 shift + 双击:http://www.richard-banks.org/2010/07/how-to-double-click-to-diff-pending.html

There is a way to make this permanent so you don't need to shift + double-click: http://www.richard-banks.org/2010/07/how-to-double-click-to-diff-pending.html

路径: HKCU\Software\Microsoft\VisualStudio\\TeamFoundation\SourceControl\Behavior
:DoubleClickOnChange (DWORD)

Path: HKCU\Software\Microsoft\VisualStudio\<ver>\TeamFoundation\SourceControl\Behavior
Value: DoubleClickOnChange (DWORD)

0 == 查看为主命令(默认)
1 == 比较作为主命令

0 == view as the primary command (default)
1 == compare as primary command

这篇关于在 Pending Changes 视图中双击比较文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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