Add option to IDLE preferences in the general section to automatically run Strip Trailing Whitespace before saving. People who use Strip Trailing Whitespace generally do so just before saving and they do it over and over again as they develop and check in code. It would be nice to have this done automatically. In general, trailing whitespace is almost never desireable.
I want to add EOF newline stripping before making this automatic. Otherwise, the new feature will give people a false sense that it is all taken care of. I opened #38862 and hope to do it tomorrow. I may then merge Zackary's PR with any still edits of existing code, and make fixing the General tab and its Help page a new PR. I am thinking to make the per file option toggle, under Options, analogous to Add/Hide Linenumbers, be 'Fix/Leave Whitespace' + 'on Save' if it does not make box too wide.