Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>git-difftoolNew to Visual Studio Code? Get it now.
git-difftool

git-difftool

elppa

|
7,603 installs
| (0) | Free
run git difftool
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

git-difftool README

Install

MAC

git config --global merge.tool bc3
git config --global merge.bc3.trustExitCode true
git config --global diff.tool bc3
git config --global difftool.bc3.trustExitCode true

Windows

git config --global core.editor notepad
git config --global -e

将以下代码复制到notepad中

[diff]
	tool = bc3
[difftool]
	prompt = false
[difftool "bc3"]
	cmd = \"c:/program files (x86)/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\"
[mergetool]
	prompt = false
	keepBackup = false
[mergetool "bc3"]
	cmd = \"c:/program files (x86)/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"

RUN

Ctrl + Shift + G

2. 在变更的文件上右键菜单中点击“Run Difftool”

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft