Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Json files structure/format in Visual Studio Code

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

like image 894
Space Avatar asked Sep 13 '25 07:09

Space


2 Answers

Use ALT-SHIFT-F to auto format a json file in windows

like image 132
JJ. Avatar answered Sep 15 '25 22:09

JJ.


Open the json file and SHIFT + OPTION + F for mac

like image 23
nakeer Avatar answered Sep 15 '25 21:09

nakeer