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

3

7

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.

Wold answered 10/1, 2015 at 21:3 Comment(0)
W
13

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).

Wold answered 10/1, 2015 at 21:8 Comment(1)
It's now under Cloud9 > Preferences > Code Editor (Ace).Elaterin
B
2

As of July 2015 it is under Cloud9 > "Open your Project Settings" in the top menu bar.

"general": {
    "@stripws": false
},
Brush answered 28/7, 2015 at 19:24 Comment(0)
P
0

AWS Cloud9 has changed the option On Save, Strip Whitespace location to under Cloud9 -> Preferences -> Project Settings -> Code Editor (Ace)

Profanatory answered 4/6, 2021 at 8:12 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.