Skip to content

Commit 4fda6c8

Browse files
disable vscode formatting for mdx files
1 parent 29d6858 commit 4fda6c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"astro.content-intellisense": true,
33
"editor.formatOnSave": true,
44
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"[mdx]": {
6+
// MDX prettier formatting is quite broken and simply breaks
7+
// formatting, so we don't auto format MDX files
8+
"editor.defaultFormatter": null
9+
},
510
"typescript.tsdk": "node_modules/typescript/lib",
611
"cSpell.enableFiletypes": ["mdx"],
712
"files.associations": { "__redirects": "plaintext", "_headers": "plaintext" }

0 commit comments

Comments
 (0)