Reputation: 23
Emmet abbreviations are working with HTML, but when I try to do something like rcc
on a Javascript file, the React abbreviation fails to show up. I have tried modifying my user settings, which currently look like this:
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"files.associations": {
"*.js": "javascriptreact"
}
Here is an image of what shows up when I type rcc
:
I'd appreciate any help.
Upvotes: 0
Views: 3125
Reputation: 21
"emmet.includeLanguages": { "javascript": "javascriptreact" },
Above snippet enables emmet for JS/JSX code and it should be working fine. For react snippets using abbreviations please try below extension. I use the same for it.
ES7 React/Redux/GraphQL/React-Native snippets
Upvotes: 2
Reputation: 36
Your emmet is likely working, but abbreviations like rcc are from JS Snippets. I use the VS code extension JS JSX Snippets by sky ran.
Hope this helped.
Upvotes: 1