jsToolbox icon indicating copy to clipboard operation
jsToolbox copied to clipboard

Feature request: object formatting

Open KrekkieD opened this issue 8 years ago • 1 comments

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 also foo['bar'] -> foo.bar
    • tricky thing is (probably) to recognize properties that still need to be quoted { 'foo-biz': 'bar' }
  • JSON object to js object (i.e. {"foo":"bar"} -> { foo: 'bar' }

KrekkieD avatar Mar 09 '16 06:03 KrekkieD

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.

andresdominguez avatar Mar 28 '16 01:03 andresdominguez