是我還是在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