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.
Go to ==> PREFERENCES | GENERAL | OTHER |
Just as shown in the picture:
It'll remove trailing spaces when save, not before