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
+22-11
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# IntelliSense for CSS class names
1
+
# IntelliSense for CSS class names in HTML
2
2
3
3
A Visual Studio Code extension that provides CSS class name completion for the HTML `class` attribute based on the definitions found in your workspace or external files referenced through the `link` element.
4
4
@@ -25,29 +25,40 @@ A Visual Studio Code extension that provides CSS class name completion for the H
25
25
* Handlebars
26
26
* EJS (.ejs)
27
27
28
-
## Library Specific Support
29
-
*@apply in CSS, SASS and SCSS Files for [Tailwind CSS](https://tailwindcss.com)
28
+
## Specific Support
29
+
* "@apply" directive in CSS, SASS and SCSS Files for [Tailwind CSS](https://tailwindcss.com)
30
+
* "className" and "class" in TypeScript React, JavaScript and JavaScript React language modes
31
+
* Emmet abbreviations support triggered by typing a "." (comes disabled by default, check the User Settings topic for more information)
30
32
31
33
## Contributions
32
34
You can request new features and contribute to the extension development on its [repository on GitHub](https://github.com/Zignd/HTML-CSS-Class-Completion/issues). Look for an issue you're interested in working on, comment on it to let me know you're working on it and submit your pull request! :D
33
35
34
-
## What's new in version 1.16.2 (Fev 1015, 2018)
35
-
* Automatic re-caching when the extension's User Settings change.
36
-
* Fix mistake in production build.
37
-
* Workaround for a bug in the VS Code API.
36
+
## What's new in version 1.17.1 (Fev 18, 2018)
37
+
* Added support for "class" in TypeScript React, JavaScript and JavaScript React language modes. Previously only "className" was supported.
38
+
* Added support for Emmet.
38
39
39
40
Check out the [changelog](https://github.com/zignd/HTML-CSS-Class-Completion/blob/master/CHANGELOG.md) for the current and previous updates.
40
41
41
42
## Usage
42
43
If there are HTML or JS files on your workspace, the extension automatically starts and looks for CSS class definitions. In case new CSS classes are defined, or new CSS files are added to the workspace, and you also want auto-completion for them, just hit the lightning icon on the status bar. Also, you can execute the command by pressing `Ctrl+Shift+P`(`Cmd+Shift+P` for Mac) and then typing "Cache CSS class definitions."
43
44
44
45
### User Settings
45
-
You can change the folders and files the extension will consider or exclude during the caching process by setting the following User Settings:
46
+
The extension supports a few user settings, changes to these settings will be automatically recognized and the caching process will be re-executed.
Emmet support comes disabled by default, the reason behind this choice is because it the current implementation simply triggers completion when you type a "." (period) and this behavior might be considered a little annoying, but it might change in the future.
58
+
59
+
Currently it supports the following languages (those are [language identifier](https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers)): "html", "razor", "php", "blade", "vue", "twig", "markdown", "erb", "handlebars", "ejs", "typescriptreact", "javascript", "javascriptreact".
Copy file name to clipboardExpand all lines: package.json
+7-3
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,12 @@
1
1
{
2
2
"name": "html-css-class-completion",
3
-
"displayName": "IntelliSense for CSS class names",
3
+
"displayName": "IntelliSense for CSS class names in HTML",
4
4
"description": "CSS class name completion for the HTML class attribute based on the definitions found in your workspace.",
5
-
"version": "1.16.2",
5
+
"version": "1.17.0",
6
6
"publisher": "Zignd",
7
7
"engines": {
8
8
"vscode": "^1.19.0"
9
9
},
10
-
"enableProposedApi": true,
11
10
"keywords": [
12
11
"html",
13
12
"css",
@@ -42,6 +41,11 @@
42
41
"type": "string",
43
42
"default": "",
44
43
"description": "A glob pattern that defines files and folders to exclude. The glob pattern will be matched against the file paths of resulting matches relative to their workspace."
44
+
},
45
+
"html-css-class-completion.enableEmmetSupport": {
46
+
"type": "boolean",
47
+
"default": false,
48
+
"description": "Enables completion when you're writing Emmet abbreviations."
0 commit comments