gencer / SCSS-Everywhere

A Visual Studio Code extension that provides CSS class and ID atttribute completion with incremental build and usage explorer for the HTML class attribute based on the CSS/Template files in your workspace. Also supports React's className attribute.
https://marketplace.visualstudio.com/items?itemName=gencer.html-slim-scss-css-class-completion
MIT License
24 stars 9 forks source link

Exclude classes #63

Open mdmoreau opened 3 years ago

mdmoreau commented 3 years ago

While using this plugin with Twig I'm noticing that tags are added as suggestions if used within a class attribute. Is it possible to exclude things like {{ }} {% %} from the suggestions?

Example:

<div class="test {{ var }}"></div>

Suggests: {{ and }}

Might even be useful to filter based on the allowed characters for the class attribute (https://stackoverflow.com/a/449000). Thanks for the great extension!

gencer commented 3 years ago

I'll test this issue and provide a solution as soon as possible.