Visual Studio Code: Use the Beyond Compare diff tool

By default, the Visual Studio Code comparison tool is good, but I would like to replace it with my favorite Beyond Compare.

Easy to configure in Visual Studio 2017. It is also configured as git diffftool.

I suggested that there should be an extension for Beyond Compare, but I could not find it. Also google only delivered results regarding the full VS IDE, but nothing for VSC.

Any suggestions?

+17
source share
3 answers

Try this extension:

GitDiffer - Visual Studio Marketplace

This works for me on Windows 10, here are my settings .gitconfig

[difftool "sourcetree"] cmd = 'C:/Program Files/Beyond Compare 4/BComp.exe' \"$LOCAL\" \"$REMOTE\" [mergetool "sourcetree"] cmd = 'C:/Program Files/Beyond Compare 4/BComp.exe' \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\" trustExitCode = true [merge] tool = sourcetree [diff] guitool = sourcetree 
+7
source

I would put a problem / improvement in Microsoft Github @VOBode repo: https://github.com/Microsoft/vscode

The best case, this is doable, and someone can guide you pretty quickly on how to do it; in the worst case, it was added as a promotion request and added to the code in a timely manner.

+3
source

I came here looking for a solution to use Beyond Compare from the sidebar explorer of the VS code, which is probably not exactly what happened after the OP. However, perhaps he or others may find this useful:

There is an extension called the โ€œWindows Explorer Context Menuโ€ , which adds the ability to display the context menu of the native shell for the selected file or folder in the VS code explorer.

After installing the extension, you can right-click the file or folder, select Context Menu - Selected , and then the desired Beyond Compare operation from the menu of the native shell.

Unfortunately, it does not recognize several selected files, so to compare two files or folders you have to do it twice, first Select left file/folder for Compare , and then Compare (so in fact it is not as simple as making Reveal in Explorer , but at least you can stay in the context of VS code).

0
source

Source: https://habr.com/ru/post/1268809/


All Articles