Have you ever looked at a file in the pending changes window and wanted to see what the differences were between that file and the latest version? If so, then you’ll no doubt have done the right click, sub-menu dance like this:
Well, you don’t have to. There’s actually a few ways to avoid the right clickiness – here’s how:
1. Press Shift + Double Click.
2. Highlight the file and press Shift+Enter
3. Don’t press shift at all! Just change the registry as follows:
Path: HKCU\Software\Microsoft\VisualStudio\<ver>\TeamFoundation\SourceControl\Behavior
Value: DoubleClickOnChange (DWORD)
0 == view as the primary command (default)
1== compare as primary command
Setting this registry key will make double-click/enter do a diff instead of viewing the file, and make shift+double-click/enter view the file instead.
Enjoy!
Thanks - really useful! Having to do this ridiculous dance each time you want a diff is, well, quite ridiculous! Thanks for fixing it for me :)
ReplyDelete4. Tools -> Options
ReplyDeleteSelect Environment -> Keyboard
Scroll down to
TeamFoundationContextMenus.SourceControlPendingChangesSourceFiles.Compare.TfsContextPendingCheckinsCompareWithLatestVersion
and set a Shortcut key.
Excellent. Thanks :)
ReplyDeleteGreat tips, thanks!
ReplyDeleteExcellent! Thanks much for this.
ReplyDeleteThanks!!!
ReplyDeleteThanks so much!
ReplyDeleteBruno
Be sure that when you copy the value from this blog that you omit the space, it won't pick up the value otherwise :)
ReplyDeleteGreat tip! Now to do this for all files at once...
ReplyDeleteNice tip!
ReplyDeleteNice tip, works great on my Visual Studio 2010 running with TFS 2008.
ReplyDeleteMy life has now improved considerably. Thanks Richard.
ReplyDeleteAlso thanks Eddie Groves :)
Thank you!
ReplyDeleteYou are a true life saver!
ReplyDeleteThank you very much, default double click is very annoying.
ReplyDeleteThanks this is exactly what I was looking for.
ReplyDeleteNimesh Dhruve
OMG! Finally double click opens differences! I'm so happy :)
ReplyDelete