Roblox Studio doesn’t automatically remove trailing whitespace like most IDEs so I made a plugin that adds that behavior.
It trims the trailing whitespace when you open/close/switch a script so it’ll never disturb you while you’re typing. You can also select any amount of scripts and click the toolbar button in order to trim the script(s) without having to open them.
This is a pretty minor plugin but it adds a very standard feature to Studio so I figured it was worth releasing.
Instead of needing to select all the scripts you want to batch handle, you can just select the parent. It handles all the children of your selection, so you can just select ServerScriptService and hit the button to trim all your scripts at once
I have a bug with this plugin, whenever Trailing Whitespace fires or when i Enter a script again with trailing whitespace, for some reason it takes me to the top of the script again. It would be more convenient if Trailing Whitespace would fire and not take you to the start of your script. I hope this issue is fixed soon