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.
In 2020.1 IntelliJ version:
File -> Settings -> Editor -> General -> then scroll down to 'Save Files'