2 ms·
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 o
by dpifke 3y 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 https://github.com/lewang/ws-butler
- kqr 3y agoThis 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.)