Save before indent

this makes code formattable before saving the file manually. prevents
unexpected behavior for new developed code that is not saved.