Omt*_*guy 3 json visual-studio-code
通常我会像这样创建有效的 JSON 对象:
{
hasPermission: true,
notificationStatusId: 1
};
Run Code Online (Sandbox Code Playgroud)
在 VSCode 上,保存文件时,有时会在最后一个属性后面自动添加尾部逗号,如下所示:
{
hasPermission: true,
notificationStatusId: 1,
};
Run Code Online (Sandbox Code Playgroud)
实际上我并不是在问如何禁用这种行为,而且我知道如何做到这一点。我想问 VSCode 具有自动添加尾随逗号功能的原因是什么?
| 归档时间: |
|
| 查看次数: |
6202 次 |
| 最近记录: |