vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.74k stars 592 forks source link

CSS modules suggestions #1372

Open dimensi opened 5 years ago

dimensi commented 5 years ago

Can we add css modules suggestions in vue template? How it's work there https://marketplace.visualstudio.com/items?itemName=clinyong.vscode-css-modules, but for template?

octref commented 5 years ago

You need to be more specific. What's your setup. How your template looks like. What exact feature you want.

dimensi commented 4 years ago

@octref, I talked about the lack of tips in the templates when working with css modules. image image

JamesCoyle commented 4 years ago

@octref

This would be super helpful for me. I'd also like to add to this a bit.

If I type scss I get the following: image

It would be great if these options would also include <style> scss-module.vue (and the other language variants) which would insert the same snippet as the scoped one but with the scoped attribute replaced with module:

<style lang="scss" module></style>
octref commented 4 years ago

@JamesCoyle You can easily add your own snippets, see https://vuejs.github.io/vetur/snippet.html

robertpiosik commented 4 years ago

@octref I'm not sure this issue was correctly understood as the assigned labels look wrong from my point of view. This should be labelled as feature and template-interpolation.

I'm giving +1 to what @dimensi demands, it would be helpful to have suggestions for css modules classes inside the template.