Quick Tip: Side by side diff in SourceTree

About

I don’t find inline diff very intuitive, so I was wondering if there is a side-by-side diff feature in SourceTree. Unfortunately, there is no built-in solution. The only way to view changes side-by-side is to use an external diff tool.

Screenshot lost: it is no longer in the old blog’s media library.

Solution

I’ve choose P4Merge as external diff, because it’s free and it looks nice.

After installing P4Merge, the only step left is to open SourceTree and go to Tools -> Options -> Diff. In the dropdown menu, set External Diff to P4Merge.

Screenshot lost: it is no longer in the old blog’s media library.

Now whenever I want to check the diff I can select the file in SourceTree and hit Ctrl+D to open P4Merge side by side diff.

Screenshot lost: it is no longer in the old blog’s media library.