Emmet for JSX on .js Files - Visual Studio Code

Finally! I figured out why Emmet in Visual Studio Code wasn't working for jsx on .js React file types.

To have Emmet recognize jsx in .js React file types, the editor's user settings need to include:

Open Preferences: User Settings

"emmet.syntaxProfiles": {
    "javascript": "jsx"
}

A simple fix, but man I'm so happy to have Emmet working again!

Duncan Leung

Front End Developer at iHerb.com

Irvine, CA

Subscribe to Duncan Leung: Javascript and Front End Development

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!