Is it possible to strip trailing spaces on save except indent?

I have my 'Keep indents on empty lines' set to on, however, I found Intellij strip the indents when it saves.
I know I can set 'Strip trailing spaces' in General section to none, but I would still want Intellij to clean uneccesary spaces for me.

Please sign in to leave a comment.