Sublime Forum

Formatting / semicolons automatically added on save

#1

Recently when working on React js files, I’m getting a strange problem when I save files, certain lines are being reformatted. For example, tags spanning multiple lines are wrapped to one line. In one particular file a semicolon is being added at the start of onChange function, which is breaking webpack. I tried deleting my preferences, disabling Save All On Build, and removing the babel-sublime package, to no avail.
I’m on build 3126 on Mac OS X El Capitan.

Any ideas…?

0 Likes

#2

Sounds like some package is doing you favors. The only modification that plain sublime will make to your files on save is to strip trailing whitespace, and even then you need to enable an option to cause that to happen.

Do you have some other package installed that is trying to format on save? I did a quick search and the only thing I came across was HTML-CSS-JS Prettify but there may be others.

1 Like

#3

aahhh you’re right, it was the Standard​Format package. Of course :tired_face: Toggled format_on_save to false and that did the trick. Thanks!

0 Likes