[wingide-users] whitespace handling
support at wingware.com
Thu Jul 3 11:14:56 MDT 2008
Michael P. Soulier wrote:
> I noticed that when I use Wing on a project and then go to commit in
> Git, one of its hooks complains that I have trailing whitespace. Sure
> enough, when Wing auto-indents, it fills in with space to that point.
> Is there a way to auto-trim trailing whitespace, especially from blank
> lines, but in general? Vim certainly doesn't do this by default.
You can turn on the Editor / Strip Trailing White Space preference.
Currently the only option is to do it as the file is saved to disk.
> I also noticed that when I modified the last line in a file, diff
> complained that the file did not end with a newline character.
Wing doesn't auto-add a trailing newline. We might add an option for
that as well in the future.
Wingware | Python IDE
Advancing Software Development
More information about the wingide-users