Is there a way to force Xcode to trim trailing whitespaces when I save file?
I\'m using version 3.1.3 if that matters.
You can create a script and bind it to a keyboard shortcut:
Then enter the following script:
#!/usr/bin/perl
while (<>) {
s/\s+$//;
print "$_\n";
}