The KDiff3 Handbook

developer: Michael Reeves
developer: Joachim Eibl
Revision 1.08.70 (2019-02-22)

KDiff3 is a file and folder diff and merge tool which

  • compares and merges two or three text input files or folders,

  • shows the differences line by line and character by character(!),

  • provides an automatic merge-facility,

  • has an editor for comfortable solving of merge-conflicts,

  • provides network transparency via KIO,

  • has options to highlight or hide changes in white-space or comments,

  • supports Unicode, UTF-8 and other file encodings,

  • prints differences,

  • supports version control keyword and history merging.

This document describes KDiff3-version 1.10.7.

Table of Contents

1. Introduction
Yet Another Diff Frontend?
Screenshots and Features
More Features
Line-By-Line And Char-By-Char Diff-Viewer
See White-Space Differences At One Glance
Comfortable Merge Of Two Or Three Input Files
And ...
2. File Comparison And Merge
Command-Line Options
Comparing 2 files:
Merging 2 files:
Comparing 3 files:
Merging 3 files:
Special case: Files with the same name
Commandline for starting a folder comparison or merge:
Other command line options
Ignorable command line options
Paste and Drop Input
Comparing Files And Interpreting The Information In The Input Windows
Info Line
Summary Column
Overview Column
Manually Aligning Lines
Manually Joining and Splitting Diff Sections
Merging And The Merge Output Editor Window
The Summary Column
Setting The Current Group And Synchronising Merge And Diff View Position
Choosing Inputs A, B or C For Current Conflict And Editing
Choosing Input A, B, or C for All Conflicts
Automatic Merge of Version Control Keywords and History (Log)
Navigation And Editing
Select, Copy And Paste
Finding Strings
Editor Settings
Diff Settings
Merge Settings
Folder Merge
Regional and Language Options
Configuring Keyboard-Shortcuts
Preprocessor Commands
sed Basics
Examples For sed Use In KDiff3
Order Of Preprocessor Execution
3. Folder Comparison and Merge with KDiff3
Introduction into Folder Comparison and Merge
Starting Folder Comparison Or Merge
Compare/Merge two folders:
Compare/Merge three folders:
Folder Merge Visible Information
The Name Column
The Columns A/B/C and the Coloring Scheme
The Operation Column
The Status Column
Statistics Columns
Selecting Listed Files
Doing A Folder Merge
Options for Comparing and Merging Folders
Other Functions in Folder Merge Window
Split/Full Screen Mode
Comparing or Merging a Single File
Comparing or Merging Files with Different Names
4. Miscellaneous Topics
Network transparency via KIO
How To Write URLs
Capabilities of KIO-Slaves
Using KDiff3 as a KPart
Using KDiff3 as a Git Diff and Merging Tool
5. Questions and Answers
6. Credits and License