Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class completion for CSS #84

Open
icebr9 opened this issue May 12, 2020 · 5 comments
Open

Class completion for CSS #84

icebr9 opened this issue May 12, 2020 · 5 comments
Labels
feature request New feature or request

Comments

@icebr9
Copy link

icebr9 commented May 12, 2020

Describe the bug
Not quite sure if its within the scope of the Svelte plugin but:

If you have:

 <div class="form-field"></div>

And try to do class selector within the style tag like:

<style>
.form-field {
color: red;
}
</style>

Just starting with "." in the <style> gives you gibberish suggestions for autocompletion.

Expected behavior
I've tried the same within normal .html file and behavour there is as such: "form" selector works normally, but for words starting with "." it is completly disabled, same with #.

It would be nice to have "class names intellisense" for svelte components but disabling bad autocompletion is ok as well..

Screenshots
If applicable, add screenshots to help explain your problem.
image

System (please complete the following information):

  • OS: Windows
  • IDE: VSCode
  • Plugin: Svelte Beta
@icebr9 icebr9 added the bug Something isn't working label May 12, 2020
@dummdidumm dummdidumm added feature request New feature or request and removed bug Something isn't working labels May 12, 2020
@dummdidumm
Copy link
Member

The gibberish part was partly addressed in #82 and will be further tackled by #57. The autocompletion part is a new feature that is not implemented yet.

@gevera
Copy link

gevera commented Sep 30, 2020

This is really useful to have it working out of the box. Right now I have to switch back and forth from HTML to svelte extensions just to get the autocomplete working

@jasonlyu123
Copy link
Member

I think you have another extension that provides CSS class completions for html. For example, vscode-html-css or IntelliSense for CSS class names in HTML

@yousufiqbal
Copy link

Any progress on this?

1 similar comment
@ayuancool
Copy link

Any progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants