KDiff3

Free diff and merge program for comparing or merging two or three files/directories.

Código AbertoInterface Gráfica
Windows, Linux, macOS⭐⭐Free (GPL v2)

Descrição

KDiff3 is a free, open-source diff and merge program that can compare or merge two or three text input files or directories. It shows the differences line by line and character by character, providing a clear visual representation of changes. KDiff3 is known for its reliability and comprehensive merge capabilities.

Recursos principais

  • Two-way and three-way diff and merge
  • Directory comparison and merge
  • Full Unicode support for international text
  • Syntax highlighting for many languages
  • Automatic merge where possible
  • Manual merge with intuitive interface
  • Word-wrap and line numbers
  • Integration with version control systems

Instalação

# Linux (Ubuntu/Debian)
sudo apt install kdiff3

# Linux (Fedora)
sudo dnf install kdiff3

# macOS (Homebrew)
brew install --cask kdiff3

# Windows
# Download from https://kdiff3.sourceforge.net/

Uso

# Compare two files
kdiff3 file1.txt file2.txt

# Merge three files
kdiff3 file1.txt file2.txt file3.txt -o merged.txt

# Compare directories
kdiff3 dir1/ dir2/

# Use with Git
git config --global merge.tool kdiff3

Vantagens

  • +Completely free and open source
  • +Excellent three-way merge
  • +Works well with large files
  • +Good directory comparison
  • +Cross-platform support

Desvantagens

  • -Interface can feel dated
  • -Slower development cycle
  • -Limited image comparison
  • -Installation can be tricky on some platforms