Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Posts
    14

    Default How to configure BC4 for use with git in Visual Studio Code (VSCode)

    My .gitconfigure file includes the following:
    Code:
    [merge]
    	tool = C:\\Program Files\\Beyond Compare 4\\Bcompare.exe
    [diff]
    	tool = bc
    [difftool "bc"]
    	path = C:\\Program Files\\Beyond Compare 4\\Bcompare.exe
    I've tried a couple of VSCode extensions* , but none will launch BC. Any suggestions?

    * Run git difftool and GitDiffer

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,890

    Default

    Hello,

    How are you launching the diff from VSCode?

    Looking around, it looks like VSCode supports an internal diff tool, but not an external one:
    https://code.visualstudio.com/docs/e...versioncontrol
    I found this thread that points to 3rd party tools that add the functionality, but not 1st party:
    https://stackoverflow.com/questions/...pare-diff-tool

    As for the above, you'll want to edit the .gitconfig slightly:
    http://www.scootersoftware.com/suppo...vcs#gitwindows

    The paths should be to "bcomp.exe" instead of "bcompare.exe", and you'll need to add a mergetool "bc" section.
    Code:
    [diff]
    	tool = bc
    [difftool "bc"]
    	path = C:/Program Files/Beyond Compare 4/BComp.exe
    [merge]
    	tool = bc
    [mergetool "bc"]
    	path = c:/Program Files/Beyond Compare 4/BComp.exe
    With this configured, you should be able to launch the Git Bash, and use "git difftool" on the Git for Windows command line.
    Aaron P Scooter Software

  3. #3
    Join Date
    Feb 2008
    Posts
    14

    Default

    I was trying to launch using a right-click. With your gitconfig suggestions, it now works when I install the VSCode extension GitDiffer. thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •