是我还是Visual代码和Webstorm 10中没有node.js智能感知?例如,当我有var http = require('http')时,http.不包括createServer作为建议。
我如何使intellisense工作?
发布于 2015-11-27 00:33:13
在webstorm中,要为node.js核心模块启用intellisense,您需要配置节点源,这可以在设置、->语言和框架、->、Node.js和NPM ->下完成。Webstorm将下载安装在系统上的节点版本的源代码,并将其附加到开放项目中。享受网络风暴的令人敬畏的智能感知。:)
发布于 2016-05-18 05:06:05
对于VisualStudio代码:
首先,安装台风
npm install -g typings然后,使用Typings命令行,拉下Node.js和Express类型定义文件
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
https://stackoverflow.com/questions/33696705
复制相似问题