Double-click file comparison in view of pending changes

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

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

+53
tfs visual-studio-2010
Dec 09 '10 at 7:37
source share
6 answers

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

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

0 == representation as primary command (default)
1 == compare as primary command

+59
Jan 28 '11 at 12:00
source share

Instead, move + double-click.

+59
Dec 09 '10 at 8:56
source share

The steps for VS2017 are slightly different. VS 2017 uses its own private registry , which is stored in your AppData folder.

Steps

  • Close all instances of visual studio

  • Select HKEY_USERS node and click File> Download Hive

  • Open privateregistry.bin, which can be found at %UserProfile%\AppData\Local\Microsoft\VisualStudio\15.0_[*some key*]

  • Enter a key name. For example, VS2017PrivateRegistry

  • Go to the next path and create a new DWORD with a value of 1.

    Path HKEY_USERS\VS2017PrivateRegistry\Software\Microsoft\VisualStudio\15.0_[*some key*]\TeamFoundation\SourceControl\Behavior

    Value : DoubleClickOnChange (DWORD) 1

  • Select HKEY_USERS \ VS2017PrivateRegistry

  • Click File> Unload Hive.

+14
Mar 08 '17 at 17:29
source share

This PowerShell command should enable this for all installed versions:

 Set-ItemProperty HKCU:\Software\Microsoft\VisualStudio\*\TeamFoundation\SourceControl\Behavior DoubleClickOnChange 1 
+9
Jul 11 '16 at 13:51 on
source share

Put this in the .reg file and double click on it, it will do your double click, instead of opening the file in the window of pending changes.

 Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\TeamFoundation\SourceControl\Behavior] "DoubleClickOnChange"=dword:00000001 

Verify that the version of Visual Studio is correct.

+5
Dec 17 '12 at 14:18
source share

You can also apply a few short Visual Studio keyboard shortcuts for different types of mapping - Latest, WorkSpace and Previous.

See the following message: Comparison of keyboard shortcuts for pending changes in TFS

+2
Jul 05 2018-12-12T00:
source share



All Articles