[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:
http://lists.macromates.com/textmate/2009-January/027936.html

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

and save/name that macro



--Hans



More information about the textmate mailing list