talira

Partial Diff

Diff two text selections, in one file, across files or against the clipboard, in VS Code

open sourceMITfree

A Visual Studio Code extension by Ryuichi Inagaki that compares pieces of text rather than whole files: mark one selection, then compare it with another selection in the same file or another file, with the clipboard, or compare the two files open side by side. It supports multi-cursor selections and user-defined normalization rules (replacing tabs with spaces, for example) that cut noise from the diff and can be toggled off. MIT licensed.

Problems it solves

  • compare two functions in the same file to see what's different
  • diff a snippet I copied against the code in my editor
  • see the differences between two blocks of config without saving them to files

Features

  • compare two text selections in the same file or across files
  • compare a selection with the clipboard
  • compare the two visible editors in a split view
  • multi-cursor selections
  • normalization rules applied before comparing, which can be toggled