TextMate mini-Bundle
Use TextMate? Can’t stand trailing whitespace in your code?
Here is a mini-Bundle that wraps a macro around ⌘-S to strip trailing whitespace and save the doc.
Just unzip it and double-click it.
If you want to change the shortcut, open the Bundle Editor and change it in the settings.
Christoffer Sawicki on TextMate mini-Bundle on Jan 14, 2009 at 06:24 AM
Thank you! This bundle was exactly what I needed to get rid of all the trailing whitespace that I and TextMate produce and that Git keeps whining about.
UnderpantsGnome on TextMate mini-Bundle on Feb 12, 2009 at 10:31 PM
@Christoffer glad it works for you. I just wish there was a way to get the same feature without adding the strip to the undo history. It can be a bit annoying to have to undo twice to undo one step.