React intellisense in Visual Studio Code

后端 未结 5 1945
忘了有多久
忘了有多久 2021-01-31 18:39

I\'m sure I\'m missing something simple, but I simply can\'t get React.js IntelliSense to work in Visual Studio code.

I have done the following:

  • npm
5条回答
  •  走了就别回头了
    2021-01-31 19:21

    I think you need to add jsconfig.json to the root of your workspace

    https://code.visualstudio.com/docs/languages/javascript#_javascript-projects-jsconfigjson

    [Note: you can even leave the jsconfig.json file empty]

    I had the same issue with angular this resolved it for me.

    Hope this helps!!

提交回复
热议问题