Re: remove trailing whitespace on save: but only on edited lines

David Brewer <[email protected]> Thu, 12 May 2011 19:03:47 -0700
Newsgroups gmane.comp.ide.komodo.general
Message-ID <[email protected]>
+1 on this idea.

I frequently find myself working on projects where not everyone is
using an editor that trims all trailing whitespace... it's pretty
annoying that whenever I touch a file to make a small change and check
it in, the changeset shows changes on random lines throughout the file
where Komodo cleaned up.  But, for files that I myself am creating I
love the trailing whitespace cleanup.  This would be a great
compromise!

David

On Wed, May 11, 2011 at 12:36 PM, Trent Mick <[email protected]> wrote:
> I really want Komodo to have "[ ] rm trailing whitespace, but only on
> editing lines (use scc diff to figure that out)"
>
> Ever since git... there is a fanatic war against trailing whitespace
> (before 'git diff' highlights trailing whitespace in red). Komodo's
> auto-indent leaves trailing whitespace around. It would be nice if one
> or both of the following were added:
>
> 1. When leaving a line on which Komodo just auto-indented but on which
> no content was added: remove the trailing whitespace. Not sure if this
> would be practical to implement.
>
> 2. Use scc-diff (or the edit history?) to limit the lines on which
> trailing whitespace is removed.
>
>
> Perhaps just have the "remove trailing whitespace on save" be a
> project setting woudl be sufficient.
>
> Cheers,
> Trent
>
> --
> Trent Mick
> _______________________________________________
> Komodo-discuss mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
>
_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss