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
- Navigate to the Tools tab in Sourcetree.
- Click Options to open the settings window.
- In the Options window, select the Diff section.
- Go to the External Diff / Merge section and click the drop-down menu next to External Diff Tool.
- Select Custom from the drop-down list.
- Set the Diff Command and Arguments to point to Visual Studio Code.
- Click OK to confirm and save the changes.



