Skip to content

Commit cb67219

Browse files
committed
Update readme
1 parent 23180e7 commit cb67219

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/vscode-tailwindcss/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,26 @@ See the complete CSS for a Tailwind class name by hovering over it.
3232

3333
Provides syntax definitions so that Tailwind features are highlighted correctly.
3434

35+
### Tailwind CSS Language Mode
36+
37+
An alternative to VS Code's built-in CSS language mode which maintains full CSS IntelliSense support even when using Tailwind-specific at-rules.
38+
3539
## Recommended VS Code Settings
3640

37-
VS Code has built-in CSS validation which may display errors when using Tailwind-specific syntax, such as `@apply`. You can disable this with the `css.validate` setting:
41+
VS Code has built-in CSS validation which may display errors when using Tailwind-specific at-rules, such as `@apply`. You can disable this with the `css.validate` setting:
3842

3943
```
4044
"css.validate": false
4145
```
4246

47+
Alternatively, you can configure VS Code to use the provided Tailwind CSS language mode by default for all CSS files:
48+
49+
```
50+
"files.associations": {
51+
"*.css": "tailwindcss"
52+
}
53+
```
54+
4355
By default VS Code will not trigger completions when editing "string" content, for example within JSX attribute values. Updating the `editor.quickSuggestions` setting may improve your experience:
4456

4557
```

0 commit comments

Comments
 (0)