Hacker News new | ask | show | jobs
by dpifke 987 days ago
Another option is to use something like ws-butler[0], which only deletes trailing whitespace on lines you've edited. This way you don't create spurious diffs on version controlled files, which confuse code reviewers and `git blame` users in the future.

[0]: https://github.com/lewang/ws-butler

1 comments

This is an awesome mode. I enabled it once and then just left it in there and it quietly does its thing. I really miss it in other editors.

(Of course, $employer enforces whitespace style globally with a linter so the files here can't end up in a state where ws-butler is meaningful. Not sure what I prefer.)