3 ms·
Combine with something like https://github.com/schorfES/grunt-lintspaces https://github.com/schorfES/grunt-lintspaces to check that all code complies + some tes
by VoxPelli 12y ago
Combine with something like https://github.com/schorfES/grunt-lintspaces https://github.com/schorfES/grunt-lintspaces to check that all code complies + some tests before or after you push your code upstream to eg. Git and you'll get a much more consistent code base when it comes to whitespaces.
- reledi 12y agoIf your project doesn't use Grunt, but you do use Vim, you can put the following in your .vimrc " Remove trailing whitespace for everything but markdown. let whitespace_blacklist = ['markdown'] autocmd BufWritePre * if index(whitespace_blacklist, &ft) < 0 | :%s/\s\+$//e There's also several ways to use Git for removing trailing whitespace, if you prefer that.