Trying to use emmet with a react app in vs code

AltBrian picture AltBrian · Jun 7, 2018 · Viewed 7.3k times · Source

I am using Visual Studio Code and creating a React App. I understand that Vsc comes with Emmet but it does not work with my React App. I have tried putting the following code in settings.

"emmet.includeLanguages": {
"javascript": "javascriptreact",
"xml": {
  "attr_quotes": "single"
 }
 },
"emmet.triggerExpansionOnTab": true,

Answer

Damjan Pavlica picture Damjan Pavlica · Jan 23, 2019

Add this to settings JSON:

"emmet.includeLanguages": {
  "javascript": "javascriptreact"
}