federomero / pretty-json

Atom plugin. Format JSON documents.
MIT License
94 stars 23 forks source link

Prettify on save #53

Closed RobbieTheWagner closed 8 years ago

RobbieTheWagner commented 8 years ago

It would be nice if we could format JSON automatically on save, rather than having to use the command palette every time

lexicalunit commented 8 years ago

@rwwagner90 great idea, I just added this feature in version 1.5.0, cheers!

RobbieTheWagner commented 8 years ago

Awesome, thanks!

RobbieTheWagner commented 8 years ago

@lexicalunit I just updated to 1.5.0 and it seems formatting on save is set by default, and there is no way to change it. Could we add a checkbox to the settings to disable it? I know sometimes I will be making quick edits to files that adhere to someone else's formatting, and not being able to disable the option may be annoying to some users.

lexicalunit commented 8 years ago

There should be a setting in pretty-json to control this in version 1.5.0. I named it "Prettify On Save JSON":

screen shot 2016-08-02 at 10 47 22 am
RobbieTheWagner commented 8 years ago

Ah, yeah. It did show up for me now. Not sure why it didn't initially. Sorry about that!