有没有一种方法可以将 Visual Studio Code 设置为 Mac 上 Sourcetree 中的默认差异/merge 工具?
最佳答案
需要在Sourcetree中做如下配置
- 转到 Sourcetree → Preferences → Diff
- 在外部差异/merge 部分,为视觉差异工具和 merge 工具选择自定义/li>
差异 参数 →
--diff --wait "$LOCAL""$REMOTE"
Merge 参数 →
-n --wait "$MERGED"
保存配置后,转到 Sourcetree 并右键单击有 merge 冲突的文件 Resolve Conflicts → Launch External Merge Tool
/li>
Note: Diff and Merge command should point to
/usr/local/bin/code
and notcode
otherwise it will not work
关于git - Visual Studio Code for Mac 作为 Sourcetree 中的差异/merge 工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46770156/