[TxMt] Re: Removing trailing whitespace when saving document

Hans-Jörg Bibiko bibiko at eva.mpg.de
Wed Mar 25 18:10:41 UTC 2009

On 25.03.2009, at 18:48, jonatan andersson wrote:

> Hi,
> I would like to know how to remove trailing whitespace (spaces and
> tabs) when saving a document.
> I currently have the Text bundle item "Remove Trailing Spaces in
> Document / Selection" associated with a keyboard shortcut, but that is
> not an optimal solution

Create a tmCommand 'saveMe' in the Bundle Editor as discribed here:

Then record a macro with:
- Text > Converting/Stripping > "Remove Trailing Spaces in Document /  
- saveMe

and save/name that macro


More information about the textmate mailing list