Skip to content

How to enable Emmet in JSX

Daisho Komiyama edited this page Nov 22, 2021 · 1 revision
  • Shift + P to open User Settings
  • Type json in the search field
  • Click Edit in settings.json

A. Make sure you have this.

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

B. And that doesn't work, add this.

"files.associations": { "*.js": "javascriptreact" },

For my case, I needed to add B as well as A. (You can add A through the setting with GUI though)

Clone this wiki locally