当我在 Visual Studio Code 中保存 json 文件后,它会自动格式化文档,数组会垂直显示(通过添加换行符)。由于我有巨大的整数数组,因此几乎不可能快速查看文件。例子:
{
"big_integer_array": [
12,
15,
13,
1,
5,
8,
15,
14,
12,
...
],
"this_value_is_in_line_million": true
}
Run Code Online (Sandbox Code Playgroud)
我如何告诉程序,像这样水平显示数字数组:
{
"big_integer_array": [12,15,13,1,5,8,15,14,12, ...],
"this_value_is_in_line_three": true
}
Run Code Online (Sandbox Code Playgroud)