Change default settings to insert spaces instead of tab and remove trailing spaces.