I use VS 2017 and I want to view a file changes in meld from visual studio, or call meld for file from Visual Studio comfortably. How can I do this?
3 Answers
While I can't say if VS 2017 behaves the same as VS 2019 in that regard, VS 2019 seems to respect the Git settings.
Meld can be configured as the default diff and merge tool for Git, as explained here.
It is also possible to configure it for Tortoise set of tools, as explained here, should you wish to use that as an alternative for managing Git repositories.
If you are using a different source control provider, hopefully the above examples with syntax will help you figure out the correct configuration in Visual Studio.
Effectively, the variables needed are: %base %mine %theirs %merged
along with options --auto-merge --output --diff
.

- 2,482
- 2
- 24
- 29
Meld Diff lets you use meld
to compare files or folders from visual studio code
directly. This extension open two files (or folders) in the external tool meld
.
To install, launch VS Code Quick Open
using (Ctrl+P), paste ext install danielroedl.meld-diff
, and press enter.
Checkout the documentation here.

- 3,300
- 1
- 28
- 33
-
1Didn't he write "Visual Studio 2017", not "Visual Studio Code"? – Alen Siljak Feb 15 '21 at 12:11
-
@AlenSiljak You are right. The question is about Visual Studio 2017. My bad. I have not tested `Meld Diff` in Visual Studio 2017. – Safwan Feb 16 '21 at 05:42
I don't think there is Visual Studio support for meld, but you have some alternatives.
You can use the integrated tools to view file changes. You can use it like this in cmd:
devenv /Diff SourceFile, TargetFile, [SourceDisplayName],[TargetDisplayName]
Next to that there are also some addons such as this one which offer some comparison functionality

- 1,516
- 1
- 16
- 31