-
Notifications
You must be signed in to change notification settings - Fork 85
Not working with Vue files #117
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
Comments
I just tried it out and worked with a .vue file. This simple div declaration triggered auto completion for me:
Are you using the extension from inside a workspace? Do you have your CSS classes defined in .css files, referenced through a link element in HTML files or inside style elements? If you answered yes for most of those questions would be great if you could check your Developer Tools (Help > Toggle Developer Tools) as the extension logs some useful info to it. |
Sorry, I should've been more clear. It recognizes styles in global css files, however it does not recognize the styles within the <style> tag in a Vue single file component. |
No problem. Actually, the extension doesn't support CSS classes defined inside .vue files, it only supports auto-completion for the class attribute in this file format. You would have to define them on the outside. |
Ohhh, is this something you're willing to consider? Coming from WebStorm, that was a pretty helpful feature. |
Actually, that's something I never thought about, I didn't know Vue allowed you to do so (as I mostly use React in real life). But I will open another issue requesting this feature, so I can keep track of it. |
I have Vetur installed, yet it still doesn't seem to work. Any ideas?
The text was updated successfully, but these errors were encountered: