
Therefore the command ' Open with meld diff (git scm)' can be selected from the context menu.Īll versions of the file that are not in the current workspace that are needed for the diff (e.g for diff of HEAD version to staged version) are only temporary and are deleted after meld is closed. It is possible to open a diff or merge conflict of a file from the Source Control window with meld (only for git). This command is also available in the editor context menu. If the selection is not equal meld will be started comparing the saved file with the clipboard (not the maybe unsaved content).

If the selection is equal to the clipboard just a message will appear and no meld is started. If no text is selected the whole content of the editor is taken as selection.
#Compare files in vscode code
Don't delete temp files if visual studio code is closed before meld.Usage with file list (also folder comparison possible).Compare all selected files/folders using meld.Compare current file with saved version using meld.Compare current file with one other file (not open in editor) using meld.Compare current file with one other open file in editor using meld.Compare all visible documents (two or three) using meld.Compare files, folders, clipboard or git changes with the tool meld (or other like WinMerge, Beyond Compare.It is also possible to change the compare tool (see Customize settings).

If this is not possible the command can be changed to an absolute path (see Customize settings).
#Compare files in vscode windows
On Windows you maybe have to add the executable folder of meld to your PATH.

In a command line the command meld should work. Meld tool must be available on your system. Hit Ctrl + Shift + P to open the command menu and type Meld Diff.įolder comparison is only possible from file list (see hint in command description 'Select for meld compare' and 'Compare with selected for meld compare') It is also possible to choose the files (or folders) from the file list. There are several commands to do different ways of comparing. It is also possible to compare editor context or text selection with the clipboard or to use it with the git source control. This extension open two files (or folders) in the external tool meld (or any other diff tool you want). Compare files, folders, clipboard or git changes with the tool meld (or other like WinMerge, Beyond Compare.
