I have many software projects, in different languages. They are all in git repos. I normally use vim to program.
Recently, I enabled the vim spacehi plugin, and started noticing just how much bad whitespace my projects have.
It's a massive pain to go through every single file, and manually remove bad whitespace in all my projects. Is there any kind of tool, or perhaps sed line, that can be run project-wide to delete all bad whitespace?
Obviously, letting a tool modify source code isn't ideal, but git difftool
can easily tell you exactly what the tool changed, so I can review the changes it makes to my various source files before doing a git commit, which is still easier than making the changes manually.