title: Remove trailing whitespace on save in IntelliJ IDEA 12
body: <p>Is it possible to remove trailing whitespace automatically on save in IntelliJ IDEA? I know there are some workarounds, for example, using git to trim the whitespace on commit. 
  Maybe this question is a duplicate of <a href="https://stackoverflow.com/questions/946993/intellij-reformat-on-file-save/5581992#5581992">this one</a>, but i hope this can be done without setting up keyboard shortcuts and macros.</p>