react
Enable Emmet Support for React in VSCode
Emmet support is built-in into VSCode. But it does not work out of the box with react.
So you need to configure it such that javascriptreact
is treated as javascript
(At least that is that I think it indicates)
- Go to Settings Via Cmd+, on Mac (or Ctrl+, on Windows)
- Search for
Emmet
underExtensions
(and then Search forInclude
on that page)
There are instructions/examples there. Use javascript
as Item and javascriptreact
as Value
Or Add the following to the settings.json
(Open via Edit in settings.json
link on that page)
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},