2019: Straight-to-the-point answer for React
The most straight-forward way to get JSX/HTML autocomplete in your React projects is to add this to your user settings or workspace settings (<project-path>/.vscode/settings.json
):
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"emmet.triggerExpansionOnTab": true
You may have to restart VS Code for the change to take effect.
P.S. If you're not doing this mapping for a React.js project, then KehkashanFazal's answer should probably work for you.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…