jsToolbox
jsToolbox copied to clipboard
Feature request: object formatting
Not sure if you do feature requests, but in case you do:
- remove quotes from object properties (i.e.
{ 'foo': 'bar' }
->{ foo: 'bar' }
and maybe alsofoo['bar']
->foo.bar
- tricky thing is (probably) to recognize properties that still need to be quoted
{ 'foo-biz': 'bar' }
- tricky thing is (probably) to recognize properties that still need to be quoted
- JSON object to js object (i.e.
{"foo":"bar"}
->{ foo: 'bar' }
I am working on a new version that uses the paid version of intellij (ultimate) so I can use the Psi API to parse the javascript instead of using regular expressions. I will update this bug when I have something working.