How to double-click to diff pending changes

When reviewing the pending changes window within Microsoft Visual Studio 2010 the default action of double-clicking an item views the file. To diff the pending changes between the file and the latest version, you have to:

  1. Right Click the file
  2. Left Click “Compare”
  3. Left Click “With Latest Version…”

OUCH! There’s got to be an easier way! Well there is …

You can avoid the mouse dance, by performing a “Compare with Latest Version” by either:

  • Holding Shift + Double-Clicking the file
  • Highlighting the file and pressing Shift+Enter

You can also change the default behaviour of double-clicking a file to be Compare rather than View. To do this, just update the registry setting:

    0 : View file
    1 : Compare with Latest Version

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>