Diagathe Josué
Diagathe Josué

Reputation: 11976

VS Code - Make jsx intellisense works for simple ".js" files

I'm working with VS Code, the intellisense easing the writing of jsx code works only when the editor is set on "Javascript React" file. How make the intellisense when my editor is simple set on "Javascript".

It would allow me to create simple ".js" file benefiting by the same way of the jsx intellisense.

Thanks

Upvotes: 0

Views: 570

Answers (1)

Murli Prajapati
Murli Prajapati

Reputation: 9713

Add this setting in your user settings file:

"files.associations": {
   "*.js": "javascriptreact"
}  

My VSCode version: 1.24.1

Upvotes: 2

Related Questions