As collections are meant to be shared via source control, removing annoying things like trailing whitespace from scripts would help avoid having a mess when those are edited.
Implementation-wise it's going to be a bit of a pain because doing it outside of CodeMirror causes the caret to be reset to beginning of the line every time the file gets reloaded.
As collections are meant to be shared via source control, removing annoying things like trailing whitespace from scripts would help avoid having a mess when those are edited.