You can also enable it on save via the following preference (Editor -> General -> Other):
And for those wondering,
"Always keep trailing spaces on caret line"
If this option is selected, trailing spaces will not be stripped on the line where the caret is placed on save operation (for example, when you switch to another window).
(bigger image)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…