Re:Prettier $20k Bounty was Claimed
by nicky0 on Tuesday November 28, 2023 @04:02AM
(#38443824)
Good point. Are there any code-semantics-aware diff tool out there though?
[ Parent
| on HN ]
If you're looking for a VS Code extension or a GitHub app, check out https://semanticdiff.com/. I'm a co-founder of this project.
If you prefer a CLI tool, check out https://github.com/Wilfred/difftastic. It supports more languages, but doesn't recognize when code has been replaced by an equivalent version ("invariances"). So it will show some changes (e.g. replacing a character in a string with an escape sequence) even though they are technically equivalent.