Skip to content

Commit 8edb07d

Browse files
authored
chore(vscode): add JSON formatter and preserve final newline (#7547)
Set default formatter for JSON to the built-in formatter and enable files.insertFinalNewline so formatted JSON keeps a trailing newline, matching project style.
1 parent 46a9c8a commit 8edb07d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
// Use the workspace version of TypeScript instead of VSCode's bundled version
33
"typescript.tsdk": "node_modules/typescript/lib",
4+
"files.insertFinalNewline": true,
45
"yaml.schemas": {
56
"https://json.schemastore.org/github-workflow.json": ".github/workflows/*.yml"
67
},
@@ -32,5 +33,8 @@
3233
"editor.codeActionsOnSave": {
3334
"source.fixAll.eslint": "explicit"
3435
}
36+
},
37+
"[json]": {
38+
"editor.defaultFormatter": "vscode.json-language-features"
3539
}
3640
}

0 commit comments

Comments
 (0)