简体   繁体   中英

Develop nodejs with Visual Studio Code

Microsoft has announced the new cross platform IDE Visual Studio Code . I don't see how can enable nodejs tools for it. As far as I understand there should be something coming out of the box.

Node.js tools are automatically enabled. In order to activate them, you need to:

  1. Hover your mouse over Node specific code (such as a require statement)
  2. Click on the lightbulb
  3. Select the option that contains the Add /// reference to 'node/node.d.ts' construct
  4. That's it

It doesn't matter where you put the reference string.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM