I'm using Visual Studio Code. How can I enable emmet on .tsx files?
I'd like a simple
.foo + tab
to be expanded to
<div className="Foo"></div>
However, nothing I tried seemed to trigger emmet with the desired behavior above.
Here's my VSC settings:
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"typescript": "typescriptreact",
},
.js
and.tsx
file withJSX
support. One reason it might not be working for you is,"emmet.showExpandedAbbreviation": "inMarkupAndStylesheetFilesOnly"
which should ideally be"emmet.showExpandedAbbreviation": "always"
as was in my case. – Globeflower