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: README.md
+35-26Lines changed: 35 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -17,26 +17,6 @@ HTML `id` and `class` attribute completion for Visual Studio Code.
17
17
18
18
You can view a list of `id` and `class` attribute suggestions in configured languages.
19
19
20
-
## Specifying Style Sheets
21
-
22
-
Style sheets can be specified in VS Code settings per workspace folder in `.vscode/settings.json` and will suggest for all configured languages within that workspace folder.
Supported languages can be configured with the `css.enabledLanguages` setting. By default `html` is enabled:
@@ -51,13 +31,38 @@ Extension can be configured to support any language where it makes sense such as
51
31
52
32
This setting is application scoped and changing the setting requires restarting VS Code.
53
33
34
+
## Specifying Style Sheets
35
+
36
+
Style sheets can be specified in VS Code settings per workspace folder in `.vscode/settings.json` and will suggest for all configured languages within that workspace folder.
|`**`| any number of path segments, including none |
47
+
|`{}`| group conditions like `**/*.{ts,js}`|
48
+
|`[]`| declare a range of characters like `[0-9]`|
49
+
|`[!]`| negate a range of characters like `[!0-9]`|
50
+
54
51
## Examples
55
52
56
-
Configuration depends on your layout of the project but some samples are below:
53
+
Configuration depends on your layout of the project. The following most basic settings will suggest from all your css files in your project's `src` folder:
54
+
55
+
**`.vscode/settings.json`**
56
+
57
+
```json
58
+
{
59
+
"css.styleSheets": ["src/**/*.css"]
60
+
}
61
+
```
57
62
58
63
### Bootstrap
59
64
60
-
If you are using Bootstrap npm module:
65
+
If you are using Bootstrap `npm` module with additional `scss` this can be a starting point:
61
66
62
67
```json
63
68
{
@@ -68,36 +73,40 @@ If you are using Bootstrap npm module:
68
73
}
69
74
```
70
75
71
-
If you are using Bootstrap CDN:
76
+
and if you are using Bootstrap CDN with additional plain `css`:
0 commit comments