Search code examples
node.jsintellisensewebstormvisual-studio-code

Node.js intellisense in WebStorm and/or VS Code


Is it me or there's no node.js intellisense in Visual Studio Code and Webstorm 10 ? For example when I have var http = require('http') then http. does not include createServer as a suggestion.

How can I make intellisense work ?


Solution

  • In webstorm to enable intellisense for node.js core modules you need to configure node sources which can be done under Settings -> Languages & Frameworks -> Node.js and NPM -> Click on configure. Webstorm will download the sources for the node version installed on your system and attach it to the open project. Enjoy Webstorm's awesome intellisense. :)