dzhibas / SublimePrettyJson

Prettify/Minify/Query/Goto/Validate/Lint JSON plugin for Sublime Text 3 & 4
MIT License
2.03k stars 180 forks source link

Feature request: enable indentation style configuration #164

Closed rogerluan closed 2 years ago

rogerluan commented 2 years ago

Hi 👋

Currently this formatter uses a fixed indentation Style: Allman. My request is to enable the customization of this indentation style, at the bare minimum allowing OTBS as a valid style.

Appreciate any input in this request 🤗

rogerluan commented 2 years ago

Aah this option already exists! It's just not documented 😄 I was configuring Pretty JSON by reading the documentation in this repo and adding the configuration keys in Sublime Text's settings file. This works, but you can also press cmd + shift + p and type in json and select the Preferences: Pretty JSON Settings to see all the settings available. This is as close to the most up-to-date documentation you'll find 😄