diff --git a/.vscode/settings.json b/.vscode/settings.json index 6cd89ca8..d166e6d7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,9 +1,17 @@ { + // Use the project's typescript version "typescript.tsdk": "node_modules/typescript/lib", - "cSpell.enabledLanguageIds": [ - "markdown", - "plaintext", - "text", - "yml" - ] + + "cSpell.enabledLanguageIds": ["markdown", "plaintext", "text", "yml"], + + // Use prettier to format typescript, javascript and JSON files + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, }