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 [this one](https://stackoverflow.com/questions/946993/intellij-reformat-on-file-save/5581992#5581992), but i hope this can be done without setting up keyboard shortcuts and macros.