Browse Source

[tools/vsc.py]update json dump support indent=4

xieyangrun 7 năm trước cách đây
mục cha
commit
8101fe1586
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tools/vsc.py

+ 1 - 1
tools/vsc.py

@@ -64,7 +64,7 @@ def GenerateCFiles(env):
         json_obj = {}
         json_obj['configurations'] = [config_obj]
 
-        vsc_file.write(json.dumps(json_obj))
+        vsc_file.write(json.dumps(json_obj, indent=4))
         vsc_file.close()
 
     return