JSON-Viewer icon indicating copy to clipboard operation
JSON-Viewer copied to clipboard

Line breaks customization

Open RosinSmoke opened this issue 3 years ago • 0 comments

I'm not quite sure which formatting style the add-on is after. Square brackets seem to always stay on the end of the line, but curly brackets sometimes have the line break before them, and sometimes not, and it is mildly distracting. Especially in situations like this:

{
	"object": "ObjectName",
	"properties": [
		{
			"id": "123456",
			"someProperty": "green",
			"someOtherList": {
				"head": "square",
				"tail": "round"
			}
		}
	]
}

Would it be possible to implement either the config file for formatting style, or couple of presets for most popular styles, like Allman/K&R/GNU, but set them exactly as our sacred cows look?

RosinSmoke avatar Sep 14 '20 14:09 RosinSmoke