This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Sourcetree

How to Sync Sourcetree with Visual Studio Code

Updated on:
June 5, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to connect Sourcetree's diff tool to Visual Studio Code.

Quick summary

This tutorial shows how to sync Sourcetree with Visual Studio Code by configuring a custom external diff tool in Sourcetree's Options. Once set up, developers can view and resolve code differences directly inside VS Code from within Sourcetree.


Steps

  1. Navigate to the Tools tab in Sourcetree.
  2. Click Options to open the settings window.
  3. In the Options window, select the Diff section.
  4. Go to the External Diff / Merge section and click the drop-down menu next to External Diff Tool.
  5. Select Custom from the drop-down list.
  6. Set the Diff Command and Arguments to point to Visual Studio Code.
  7. Click OK to confirm and save the changes.

📌 Why this matters

Syncing Sourcetree with Visual Studio Code allows developers to review and resolve code differences using a powerful, familiar editor instead of a basic built-in diff viewer. Configuring VS Code as the external diff tool in Sourcetree streamlines the code review workflow by keeping everything inside one ecosystem. This integration is especially valuable for teams that rely on Git version control and want faster, more readable diff comparisons. Setting up a custom external diff tool in Sourcetree takes only minutes and significantly improves developer productivity.
Your product deserves an interactive demo
Start free
Similar Articles
Sourcetree

How to Update Sourcetree Mercurial

Madhav Bhandari
Director of Marketing @ Storylane
Sourcetree

How to Add SSH Key in Sourcetree

Madhav Bhandari
Director of Marketing @ Storylane
Sourcetree

How to Change User in Sourcetree

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Hubs
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it