在 Pending Changes 视图中双击比较文件 [英] Compare files on double click in Pending Changes view
问题描述
当我在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\
值: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屋!