Repository navigation
DiffCode 0.8.0
macOS: Download DiffCode.pkg for Apple Silicon Macs, or DiffCode-Intel.pkg for Intel Macs — signed and notarized by Apple; copies already installed update themselves. Prefer to drag it in? Use DiffCode.zip or DiffCode-Intel.zip. Requires macOS 14 or later. Not sure which Mac you have? Apple menu → About This Mac: "Chip: Apple M…" is Apple Silicon, "Processor: … Intel …" is Intel.
Windows: Download DiffCode-Setup-x64.exe — installs for your account, no administrator rights needed; or unzip DiffCode-windows-x64.zip and run it. Requires 64-bit Windows 10 (version 1809) or later. The installer is not code-signed, so on first run Windows SmartScreen may say "Windows protected your PC": choose More info → Run anyway.
Linux: Download DiffCode-linux-x86_64.tar.gz, or DiffCode-linux-aarch64.tar.gz for 64-bit Arm. Unpack it and run DiffCode/install.sh: it installs for your account, no root needed, and adds DiffCode to the applications menu (install.sh --uninstall removes it). Requires GTK 3 and glibc 2.35 or later (Ubuntu 22.04, Debian 12, Fedora 36 or newer), on X11 or Wayland, and Git. To update, run the new download's install.sh.
New
- Collapse unchanged lines (#22). A new button in the diff's top bar (also Collapse Unchanged Lines in Search Everywhere) folds the unchanged code between changes into one row, such as "⋯ 128 unchanged lines", and keeps three lines before and after every change. Click the row to unfold it; it stays unfolded while you look at that file. Settings → Lines kept around changes when collapsed sets how many lines stay (0–20). It works in the side-by-side and unified views, stays on for every file until you turn it off, and is remembered at the next launch. The arrow keys step over folded code, and a Find result or a line you go to unfolds the code it is in.
In the Mac, Windows and Linux apps.
新功能
- **折叠未变更的行(#22)。**diff 顶栏新增一个按钮(「随处搜索」里也能搜到「折叠未变更的行」),把改动之间没变的代码收成一行,比如「⋯ 128 行未变更」,每处改动前后各留 3 行。点这一行就展开,看这个文件期间一直展开。留几行在「设置 → 折叠时变更前后保留的行数」里改(0–20)。并排和单栏视图都能用,打开后对所有文件有效,下次启动也记得。方向键移动光标时跳过折叠的部分,查找结果或要跳到的行在折叠里时会自动展开。
Mac、Windows 和 Linux 版都有。
Checksums are in SHA256SUMS.txt (macOS), SHA256SUMS-windows.txt (Windows) and SHA256SUMS-linux.txt (Linux).