Search code examples
reactjsvisual-studio-codeemmet

Trying to use emmet with a react app in vs code


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,

Solution

  • Add this to settings JSON:

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