有没有什么办法可以配置js-beautify保持如下格式:
"structure": [
{
"name": "heading",
"text": "",
"default": "",
"type": "string"
},
{
"name": "flickr-album-id",
"text": "",
"type": "string"
},
]
Run Code Online (Sandbox Code Playgroud)
js-beautify 将第一个对象的大括号拉入第一行。我知道这个选项,keep_array_indentation但我不想禁用一般的自动缩进,因为否则错误不会得到修复。
js-beautify 的结果 - 我想阻止 - 将是
"structure": [{
"name": "heading",
"text": "",
"default": "",
"type": "string"
},
{
"name": "flickr-album-id",
"text": "",
"type": "string"
},
]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
640 次 |
| 最近记录: |