0

Any recommended tools, which can do in-place (for in-place, I mean some IDE or tools which could have functions of both compare and merge.) compare for two files, and merge them in-place?

I currently use the diff command line, but am looking for a GUI tool.

Free tool is appreciated. :)

2

Here are some suggestions:

Related posts:

| improve this answer | |
  • For me Meld is the best tool for Mac and Windows. Thanks – Pratik Patel Jun 15 '19 at 15:37
1

Take a look at this StackOverflow question. Might be what you asked for.

| improve this answer | |
  • Nice recommendation Abdul, vote up, will try and see any further issues. :) – Lin Ma Mar 13 '16 at 22:52
1

If you are already working with code then I recommend Visual Studio Code since it has an excellent built-in diff tool. Visual Studio Code is a pretty good code editor in its own right so I think it's a good app to have installed along with your other development tools. I use it to work on miscellaneous projects outside of my main IDE.

To use its compare feature, you first need two files open. Then, from the explorer panel, right click the first file and click "Select for Compare". Then, from the explorer panel, right click the second file and click "Compare with Selected". A new tab will open which shows the two files side by side with differences highlighted.

Here is an example of the difference view:

Visual Studio Code Difference Editor

Conveniently, you can also launch the difference view from the command line. Based on the documentation, it looks like you can launch it like this:

code -d /path/to/file1 /path/to/file2

or

code --diff /path/to/file1 /path/to/file2
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.