Compare files on double click in Pending Changes view

后端 未结 7 1036
醉话见心
醉话见心 2020-12-04 12:48

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

The default behavior is, that Visual Studio opens

7条回答
  •  粉色の甜心
    2020-12-04 13:33

    VS 2017

    This PowerShell script should turn this on for the latest installed instance (adapted from Anish's answer)

    You'll need to close all VS instances first.

    $instanceId = $(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property instanceId).Trim()
    reg.exe load HKLM\VS2017PrivateRegistry $env:LOCALAPPDATA\Microsoft\VisualStudio\15.0_$instanceId\privateregistry.bin
    reg.exe add HKLM\VS2017PrivateRegistry\Software\Microsoft\VisualStudio\15.0_$instanceId\TeamFoundation\SourceControl\Behavior /v DoubleClickOnChange /t REG_DWORD /d 1 /f
    reg.exe unload HKLM\VS2017PrivateRegistry
    

    VS 2015 or older

    This PowerShell command should turn this on for all installed versions:

    Set-ItemProperty HKCU:\Software\Microsoft\VisualStudio\*\TeamFoundation\SourceControl\Behavior DoubleClickOnChange 1
    

提交回复
热议问题