• AusatKeyboardPremi@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    22 hours ago

    Ignoring whitespace can simplify diffs, but I prefer to keep it visible to see exactly how the code has changed.

    I also try to minimize whitespace changes by relegating formatting adjustments to the final stage of a code check-in, after all approvals. It is even better when the project or team uses Git hooks with a linter and formatter to take away this rote work altogether.

    Thank you too for sharing your workflow. It is always interesting to read how everyone approaches the same problem in their own way. :-)