cloud9-ide

How do I strip trailing whitespace before each save in Cloud9?


Cloud9 has a command under Tools called "Strip Trailing Space". I want to automatically run this command before every time I save a file, so I can be sure my files never contain trailing spaces. How is that done?

After frustratedly Googling for quite a while, I can find no documentation on how to achieve stuff like this. They claim Cloud9 is the most hackable IDE in the world though, so it ought to be possible.


Solution

  • Well this is embarrassing, but I combed through the preferences again and found the option On Save, Strip Whitespace under Cloud9 -> Preferences -> Code Editor (Ace).