Skip to content

Commit

Permalink
(docs) code not formatted troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Aug 13, 2020
1 parent 1522d1a commit 690770e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ If your syntax highlighting seems to be not working for Svelte components, it ma
}
```

#### My Code does not get formatted

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`:

```json
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
```

## Internals

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

0 comments on commit 690770e

Please sign in to comment.