Enable HTML Emmet For React JSX Files In Visual Code
👤 By webune | 📆
To enable emmet so HTML tags to auto complete in Visual Code when you are writing React code, these are the simple steps:
- Hit Control + , to open settings tab
- Click on the "Workspace" tab
- Click on "Extensions"
- Click on "Emmet"
- Under Emmet > Include Languages > Edit in settings.json
- Under the "emmet.includeLanguages" enter the following:
- "javascript": "javascriptreact"
- Save
- Try your HTML code again and see it autocomplete with intelligence
TIP: settings.json should look something like this:
{
"emmet.excludeLanguages": [
"markdown"
],
"emmet.includeLanguages": {
"javascript": "javascriptreact"
}
}