← Back to all posts

How do you diff code? Three tools compared

Self-checking before a PR and comparing config differences — a single diff can save half an hour of arguing.

The scenario

Two configurations "look about the same" but one has an extra space or a missing switch.

You can use the command-line diff, the online diff tool, or VS Code Compare. Use the online tool for small snippets and Git for whole repositories.