📜  coc 允许 json 中的注释 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:23.097000             🧑  作者: Mango

代码示例1
The filetype need to be jsonc.
To make Vim treat all json files as jsonc:

```
augroup JsonToJsonc
    autocmd! FileType json set filetype=jsonc
augroup END
```
Or you can use a modeline (:help modeline) at the very top or bottom of an individual json file, to set the filetype to jsonc for only that file:

// vim: ft=jsonc