VSCode User Settings for Using Emmet Tab Completion in React JSX

Shan Dou
1 min readApr 20, 2019

--

TL;DR

By adding the following two lines into settings.json, the familiar Tab triggering of Emmet completion works in React JSX.

"emmet.syntaxProfiles": { "javascript": "jsx" },"emmet.includeLanguages": {"javascript": "javascriptreact"},

References

Both lines appear necessary, and they come from two different sources:

Apparent Gotcha (?)

Although I use sublime key mapping in vscode, the Ctrl + E shortcut mentioned by the beloved Wes Bos in his blog post does not take effect in my editor :(

Example: Emmet in React JSX

Figure 1. Emmet Tab completion in React JSX

--

--

Shan Dou
Shan Dou

No responses yet