How to enable Intellisense for JavaScript in Visual Studio Code

后端 未结 4 1331
我寻月下人不归
我寻月下人不归 2020-12-05 18:16

I want to use VS Code to try out the examples of a JavaScript book, but there\'s no intellisense, or at least I don\'t know how to activate it.

In Visual Studio this

4条回答
  •  北海茫月
    2020-12-05 18:34

    It worked for me, when the file had a .js extension. I didn't get any intellisense when I pasted it into .html file between script tags.

    Edit To Add: You can also change the Language Mode by clicking 'HTML' in the bottom of the VS Code window and change it to 'JavaScript'.

提交回复
热议问题