Skip to content

Commit 9dcc594

Browse files
authored
docs: update README.md with information for using prettier-plugin-tailwindcss with VS code (#371)
see #370
1 parent 97f1d17 commit 9dcc594

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ There is a [Tailwind Prettier Plugin](https://github.com/tailwindlabs/prettier-p
173173

174174
More info: https://github.com/tailwindlabs/prettier-plugin-tailwindcss#compatibility-with-other-prettier-plugins
175175

176+
Since we are using configuration overrides to handle svelte files, you might also have to configure the [prettier.documentselectors](https://github.com/prettier/prettier-vscode#prettierdocumentselectors) in your VS Code `settings.json`, to tell Prettier extension to handle svelte files, file like this:
177+
178+
```json5
179+
// settings.json
180+
{
181+
// ..
182+
"prettier.documentSelectors": ["**/*.svelte"],
183+
}
184+
```
185+
176186
## FAQ
177187

178188
### Why is the closing or opening tag (`>` or `<`) hugging the inner tag or text?

0 commit comments

Comments
 (0)