# How to Sync Sourcetree with Visual Studio Code

> To sync Sourcetree with Visual Studio Code, navigate to the Tools tab and click Options. Select Diff, go to the External Diff/Merge section, and choose Custom from the External Diff Tool drop-down menu. Set the Diff Command and Arguments, then click OK to confirm the changes.

Canonical: https://livedemo.ai/tutorials/how-to-sync-sourcetree-with-visual-studio-code/
Apps: Sourcetree
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a4f66ab56e05a00ffb9b4/preview?step=1

## Steps

1. Navigate to the 'Tools' tab.
2. Click 'Options'.
3. In the 'Options' window, select 'Diff'.
4. Go to the 'External Diff/ Merge' section, and click on the drop-down menu next to the 'External Diff Tool'.
5. Select 'Custom'.
6. Set the 'Diff Command and Arguments'.
7. Click 'OK' to confirm the changes.
