DEV Community

Harry
Harry

Posted on

Enable JSX Support in VS Code | React

  1. In VS Code, open any source folder and navigate to Settings: Ctrl +, on Windows
  2. Go to the Workspace Settings tab.
  3. Select Emmet from the Extensions selection on the left sidebar.
  4. Select "Edit in settings.json"
  5. In the newly opened settings.json file, add the following lines.
{
   "emmet.includeLanguages": {
      "javascript": "javascriptreact"
   }
}
Enter fullscreen mode Exit fullscreen mode

Emmet should now be enabled in all.js files!

Top comments (0)