Search code examples
javascriptnode.jsexpressserver

All of the .json files in one line


In my .json file all the details are in one line. How do I make it look good and placing it on different lines

enter image description here


Solution

  • You can format your JSON document using Shift+Alt+F or Format Document from the context menu.

    There are also extensions available in the Marketplace (e.g. Prettier - Code formatter).