Text Diff
Compare two text blocks, code snippets, or config files line by line, highlight additions and deletions, ignore whitespace, and copy unified diff output.
Screenshots
Overview & Usage Guide
Compare two blocks of text, code snippets, or configuration files line by line, list every change, and copy a unified diff report.
Usage
- Command: Text Diff (keywords such as
diff,compare,text diff). - Input: Paste into the left (Original) and right (Modified) editors, or load each side from the clipboard or a file (UTF-8 text, up to 4 MB per file). If only one side is loaded, the plugin prompts you to provide the other side.
- Diff View: Once both sides have content, differences are listed item by item with added/deleted lines shown in the right preview pane and counts of deletions, additions, and hunks in the title.
- Shortcuts:
- On start: select the first row and press
Enterto open the editor; press⌘/Ctrl+Enterinside the editor to run the comparison. - When differences exist:
Entercopies the full diff report,⌘/Ctrl+Entercopies only the selected hunk, and⌘/Ctrl+Kopens the action panel (swap sides, ignore whitespace differences, load from clipboard or file, clear, etc.).
- On start: select the first row and press
- Ignore Whitespace: Collapses consecutive whitespace into a single space and trims leading/trailing whitespace before comparing.
- Limits: Supports up to 20,000 lines per side. When changes are too extensive, an approximate diff is shown and noted in the title.
Platforms & Requirements
- Supported: Windows, macOS
- Built into the client; no separate installation required.
Network & Data
- Offline only; all data stays on your device.
Frequently Asked Questions (FAQ)
How do I install and launch "Text Diff" in ZTools?
Open the Plugin Marketplace inside ZTools Workbench, search for "Text Diff", and install it. Then type its name in the launcher bar to open it.
Is "Text Diff" free? Which platforms are supported?
Yes, it is free to install with source code published in the ZTools-extensions repository. Supported platforms: Windows / macOS.