Autoformat plugin on F6 and trim whitespaces on saving.