TFS shortcut to compare a modified file with the latest version

前端 未结 4 1419
星月不相逢
星月不相逢 2021-02-03 21:53

Right now I have to pull up Pending Changes window, right-click on the file and select Compare->With Latest Version... Is there a faster way to look at my modifications?

4条回答
  •  执笔经年
    2021-02-03 22:43

    Keyboard Shortcut for doing TFS Compare

    In the Team Explorer window under Pending Changes:

    • shift + enter on file
      • will compare the files
    • shift + double click on file
      • will compare file in background
    • Create visual studio mapping for the commands:

    Set the shortcut for compare folder under Source Control Explorer, you should set the shortcut keys for File.TfsFolderDiff command.

    Set the shortcut for compare specific file under Source Control Explorer, you should set the shortcut keys for File.TfsCompare command

    Note: To set the keyboard shortcuts, open "Tools > Options". In the dialog that opens, go to "Keyboard". Example:

    Note: The folder compare shortcut is only valid from the "Source Control Explorer". It is the same as right clicking in the "Source Control Explorer" and selecting "Compare...".

    How to apply keyboard shortcut

    References:

    • Keyboard shortcut for File Compare?
    • Comparison keyboard shortcuts for Pending Changes in TFS by Alex Meyer-Gleaves.
    • How to Double Click to Diff Pending Changes in TFS by Richard Banks
    • TFS Shortcut to do a diff on all modified files with latest version

提交回复
热议问题