To sync SourceTree with Visual Studio Code (VS Code) so you can use VS Code as your default editor for commits, file editing, and diffs, follow these steps:
- Navigate to the 'Tools' tab.
- Click 'Options'.
- In the 'Options' window, select 'Diff'.
- Go to the 'External Diff/ Merge' section, and click on the drop-down menu next to the 'External Diff Tool'.
- Select 'Custom'.
- Set the 'Diff Command and Arguments'.
- Click 'OK' to confirm the changes.