[TxMt] Re: Question about Trim Trailing Spaces

Allan Odgaard mailinglist at textmate.org
Tue Feb 3 07:05:25 UTC 2015


On 31 Jan 2015, at 23:36, George Fields wrote:

> Currently, I am using the Text bundle to trim trailing spaces on save.
> The settings are like this:
> […]
> I tried different options for Caret Placement and for Output (in the
> bundle), but the result remains the same.

As Jacob implied, the best is to use “interpolate lines” for where 
to place the caret after the replacement.

That said, this bundle instead uses a macro that does a “replace 
all” to strip trailing whitespace, which is a better approach: 
https://github.com/bomberstudios/Strip-Whitespace-On-Save.tmbundle


More information about the textmate mailing list