Home > Back-end >  Json files structure/format in Visual Studio Code
Json files structure/format in Visual Studio Code

Time:01-16

In Visual Studio Code (under Windows), my present Json files are displayed as the following :

enter image description here

I would them to be formatted as displayed below :

enter image description here

CodePudding user response:

Press Ctrl-Shift-p to format the documents. I don't know if this shortcut works on Windows, but it does on Linux.

CodePudding user response:

Install a code formatting extension then save the file.

  •  Tags:  
  • Related