What is Difftastic?
masterDifftastic is a structural diff tool that compares files based on their syntax rather than just lines of text. It understands the underlying AST (Abstract Syntax Tree) of a file, allowing it to:
- Highlight exactly which syntactic pieces have changed.
- Distinguish between significant whitespace and mere indentation changes.
- Handle code reformatting (e.g., splitting a single line into multiple lines) without showing them as massive changes.
- Fall back to a line-oriented diff with word highlighting if a file extension is unrecognized or if parsing fails.