Skip to content

Commit

Permalink
Document Visual Studio Code support
Browse files Browse the repository at this point in the history
  • Loading branch information
knyar committed Dec 19, 2022
1 parent b833269 commit 78a2c9d
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,20 @@ For details, see the JWCC docs at:

https://nigeltao.github.io/blog/2021/json-with-commas-comments.html



## Visual Studio Code association

Visual Studio Code supports a similar `jsonc` (JSON with comments) format. To
treat all `*.hujson` files as `jsonc` with trailing commas allowed, you can add
the following snippet to your Visual Studio Code configuration:

```json
"files.associations": {
"*.hujson": "jsonc"
},
"json.schemas": [{
"fileMatch": ["*.hujson"],
"schema": {
"allowTrailingCommas": true
}
}]
```

0 comments on commit 78a2c9d

Please sign in to comment.