Search code examples
node.jsintellisensewebstormjavascript-intellisense

WebStorm intellisense node packages


I have npm installed two packages (q, async). For the first one, the intellisense works great, for the second it's not.

Do you have any idea what can I do to have the intellisense work for any node package like it works for the Q package?

Thanks!

Q

async


Solution

  • To get better coding assistance for some modules it is recommended to add TypeScript definition files as WebStorm JavaScript libraries. Go to Preferences | Languages and Frameworks | JavaScript | Libraries - click Download..., search for async - click Download and Install. You can learn a bit more about WebStorm code completion here: http://blog.jetbrains.com/webstorm/2014/07/how-webstorm-works-completion-for-javascript-libraries/