Skip to content

Commit 46d33aa

Browse files
committed
release
1 parent 7558597 commit 46d33aa

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

README.md

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@ HTML `id` and `class` attribute completion for Visual Studio Code.
1313
- Supports go to definition for selectors
1414
- Validates class attributes on demand
1515

16-
## Usage
17-
18-
You can view a list of `id` and `class` attribute suggestions in configured languages.
19-
2016
## Supported Languages
2117

22-
Supported languages can be configured with the `css.enabledLanguages` setting. By default `html` is enabled:
18+
Supported languages can be configured with the `css.enabledLanguages` global setting. By default `html` is enabled:
2319

2420
```json
2521
{
2622
"css.enabledLanguages": ["html"]
2723
}
2824
```
2925

30-
Extension can be configured to support any language where it makes sense such as `nunjucks`, `twig`, `mustache`, `typescript` etc. You should also install corresponding language extension which registers the language id in VS Code.
26+
Extension can be configured to support any language where it makes sense such as `nunjucks`, `twig`, `mustache`, `vue`, `typescript` etc. You should also install corresponding language extension which registers the specific language id in VS Code.
3127

3228
This setting is application scoped and changing the setting requires restarting VS Code.
3329

@@ -47,7 +43,7 @@ Glob patterns for local style sheets can have the following syntax:
4743

4844
## Examples
4945

50-
Configuration depends on your layout of the project. The following most basic setting will suggest from all your `css` files in your project's `src` folder:
46+
Configuration depends on your layout of the project. The following most basic setting will suggest from all `css` files in project's `src` folder:
5147

5248
**`.vscode/settings.json`**
5349

@@ -59,7 +55,9 @@ Configuration depends on your layout of the project. The following most basic se
5955

6056
### [Bootstrap](https://getbootstrap.com/)
6157

62-
If you are using Bootstrap `npm` module with additional `scss` this can be a starting point:
58+
If Bootstrap `npm` module is used with additional `scss` the following can be a starting point:
59+
60+
**`.vscode/settings.json`**
6361

6462
```json
6563
{
@@ -70,7 +68,9 @@ If you are using Bootstrap `npm` module with additional `scss` this can be a sta
7068
}
7169
```
7270

73-
or if you are using Bootstrap CDN with additional plain `css`:
71+
or in case of Bootstrap CDN with additional plain `css`:
72+
73+
**`.vscode/settings.json`**
7474

7575
```json
7676
{
@@ -81,9 +81,11 @@ or if you are using Bootstrap CDN with additional plain `css`:
8181
}
8282
```
8383

84+
All of Bootstrap's class selectors with additional user defined styles in the project will be available for completion in `html` files.
85+
8486
### [Lit](https://lit.dev/)
8587

86-
First `typescript` or `javascript` should be enabled in global settings depending on your usage and VS Code should be restarted:
88+
Enable `typescript` or `javascript` in global settings depending on your usage and restart VS Code:
8789

8890
```json
8991
{
@@ -93,15 +95,29 @@ First `typescript` or `javascript` should be enabled in global settings dependin
9395

9496
Component's [static styles](https://lit.dev/docs/components/styles/) will be available for completion elsewhere in the component. If you need to use some base styles in every component you can specify as follows:
9597

98+
**`.vscode/settings.json`**
99+
96100
```json
97101
{
98102
"css.styleSheets": ["src/base-styles.ts"]
99103
}
100104
```
101105

106+
### [Vue](https://vuejs.org/)
107+
108+
Install your favorite Vue language extension from [Marketplace](https://marketplace.visualstudio.com/search?term=tag%3Avue&target=VSCode&category=All%20categories&sortBy=Relevance) which registers `vue` language id then enable `vue` in global settings and restart VS Code:
109+
110+
```json
111+
{
112+
"css.enabledLanguages": ["html", "vue"]
113+
}
114+
```
115+
116+
Styles defined in component's `<style>` section will be available for completion in component's `<template>` section.
117+
102118
## Go to Definition
103119

104-
Go to definition for `id` and `class` selectors for local style sheets are supported. Selecting `Go to Definition` from context menu, pressing `F12` or `⌘ click` on a selector will open the local style sheet which the selector is defined.
120+
Go to definition for `id` and `class` selectors for local style sheets are supported. Selecting `Go to Definition` from context menu (`F12` or `⌘ click`) on a selector will open the local style sheet which the selector is defined.
105121

106122
## Commands
107123

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"@rollup/plugin-typescript": "^11.1.6",
121121
"@types/line-column": "^1.0.2",
122122
"@types/mocha": "^10.0.6",
123-
"@types/node": "^20.11.11",
123+
"@types/node": "^20.11.14",
124124
"@types/sinon": "^17.0.3",
125125
"@types/vscode": "^1.75.0",
126126
"@vscode/test-electron": "^2.3.9",

0 commit comments

Comments
 (0)