You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/vscode-tailwindcss/README.md
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,14 +32,26 @@ See the complete CSS for a Tailwind class name by hovering over it.
32
32
33
33
Provides syntax definitions so that Tailwind features are highlighted correctly.
34
34
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
+
35
39
## Recommended VS Code Settings
36
40
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:
38
42
39
43
```
40
44
"css.validate": false
41
45
```
42
46
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
+
43
55
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:
0 commit comments