2 Replies Last post: Oct 2, 2013 4:08 PM by Matthew Berrie  
Matthew Berrie Newbie 16 posts since
Sep 19, 2012
Currently Being Moderated

Oct 1, 2013 8:04 PM

Format/Prettify Json

I have a file that contains generated JSON, e.g. a JavaScript source-map. The file does not contain any line breaks.

 

How do I quickly reformat this file in Webstorm to make it humanly readable, adding line-breaks in a reasonable way.

My JavaScript code-style settings don't touch (force) line breaks, and I don't want to change that.

 

Any ideas?

 

Thx

Andriy Bazanov Master 3,911 posts since
May 28, 2010
Currently Being Moderated
Oct 1, 2013 9:55 PM in response to: Matthew Berrie
Re: Format/Prettify Json

Create 2 different code styles and switch between them?

 

Ctrl+` (or whatever shortcut you may have there for "View | Quick Switch Scheme...")

More Like This

  • Retrieving data ...