是我还是在Visual Studio Code和Webstorm 10中没有node.js intellisense? 例如,当我有var http = require('http')
时,则http.
不包括createServer
作为建议。WebStorm和/或VS代码中的Node.js intellisense
如何使智能感知工作?
是我还是在Visual Studio Code和Webstorm 10中没有node.js intellisense? 例如,当我有var http = require('http')
时,则http.
不包括createServer
作为建议。WebStorm和/或VS代码中的Node.js intellisense
如何使智能感知工作?
在webstorm启用需要配置,可以设置下进行点源的Node.js核心模块智能感知 - >语言&框架 - >的Node.js和NPM - >点击配置。 Webstorm将下载安装在系统上的节点版本的源代码并将其附加到打开的项目中。享受Webstorm的真棒智能感知。 :)
而对于VisualStudio的代码:
首先,安装分型
npm install -g typings
然后,使用分型的命令行,拉下的Node.js和快递类型定义文件
typings install dt~node --global
typings install dt~express dt~serve-static dt~express-serve-static-core --global
您可能会找到更多的细节: https://code.visualstudio.com/Docs/runtimes/nodejs