Skip to content

Commit 690770e

Browse files
authored
(docs) code not formatted troubleshooting
#225
1 parent 1522d1a commit 690770e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ If your syntax highlighting seems to be not working for Svelte components, it ma
8383
}
8484
```
8585

86+
#### My Code does not get formatted
87+
88+
Your default formatter for Svelte files may be wrong. Either it's set to the old Svelte extension, or you set all files to be formatted by the prettier extension. To fix this, you need to explicitly tell VSCode to format the code with the `Svelte for VSCode extension`:
89+
90+
```json
91+
"[svelte]": {
92+
"editor.defaultFormatter": "svelte.svelte-vscode"
93+
},
94+
```
95+
8696
## Internals
8797

8898
- [Notes about deployment](./internal/deployment.md)

0 commit comments

Comments
 (0)