Can I replace internal diff in Total Commander with a custom tool?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: The World Wide Mind
--
Chapters
00:00 Can I Replace Internal Diff In Total Commander With A Custom Tool?
00:31 Accepted Answer Score 39
01:54 Answer 2 Score 2
02:21 Thank you
--
Full question
https://superuser.com/questions/238039/c...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#diff #totalcommander #winmerge
#avk47
ACCEPTED ANSWER
Score 39
There are many ways to do this (here I'm using BeyondCompare as an example, it's the best I've found in this category, but the solution also works well with WinMerge):
A) Edit wincmd.ini
under %USERPROFILE%\AppData\Roaming\GHISLER\
by default, and add something like this:
[Configuration] CompareTool=C:\Program Files\Shareware\FileCmp\BeyondCmp\BCompare.exe
Now all comparisons are made using this app instead of the internal tool.
B) Using TotalCmd's StartMenu (command "Change start menu..."), add these commands:
Title:
BC (Compare left-vs-right directories)
Command:
%YourPath%\BeyondCmp\BCompare.exe
Parameters:
%X%p %X%t
Title:
BC (Compare current file under cursor vs same file in the other panel)
Command:
%YourPath%\BeyondCmp\BCompare.exe
Parameters:
"%X%p%x%n" "%X%t%x%n"
Title:
BC (Compare current file in left vs current file in right)
Command:
%YourPath%\BeyondCmp\BCompare.exe
Parameters:
"%X%p%n" "%X%t%m"
ANSWER 2
Score 2
I came accross this question because I wanted to use Visual Studio Code as external diff tool.
Since VS Code isn't primarly a diff tool one can't just invoke the exe-file with two filenames as parameters. Instead the option --diff
or just -d
has to be specified.
This is important when editing the WINCMD.INI. The line Comparetool has to take the path to code.exe and the diff-option:
[Configuration]
Comparetool="C:\Program Files\Microsoft VS Code\Code.exe" --diff
...