Skip to content

Commit 68df202

Browse files
authored
(doc) code formatting 2nd option: install prettier-plugin-svelte
1 parent a9934c3 commit 68df202

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ If you have the `Babel Javascript` plugin installed, this may be the cause. Disa
9090

9191
#### My Code does not get formatted
9292

93-
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`:
93+
Your default formatter for Svelte files may be wrong.
94+
- Mabye it's set to the old Svelte extension, if so, remove the setting
95+
- Maybe you set all files to be formatted by the prettier extension. Then you have two options: Either install `prettier-plugin-svelte` from npm, or tell VSCode to format the code with the `Svelte for VSCode extension`:
9496

9597
```json
9698
"[svelte]": {

0 commit comments

Comments
 (0)