Gilad Baruchian
Gilad Baruchian

Reputation: 980

WebStorm - autocomplete

Autocomplete does not work correctly for me, for example :

enter image description here

I tried adding node.js globals but I don't see it in the settings : enter image description here

Any idea how I can fix this?

Notes :

Upvotes: 2

Views: 1399

Answers (2)

Javed IN
Javed IN

Reputation: 332

To enable code assistance for Node.js core APIs (and that means you’ll get smart code completion, parameter info and navigation to source code), the only thing you need to do is go to Preferences | Languages & Frameworks | Node.js and npm and click Enable under Code Assistance.

An even quicker way to do the same is to use the Enable Node.js Core library quick-fix. Press Alt+Enter on the highlighted usage of one of the Node.js core modules in the code and then press Enter.

Upvotes: 0

Alex Ilyaev
Alex Ilyaev

Reputation: 1222

In WebStorm 11

You need to enable the Node.js Core library.

Go to Preferences > Languages & Frameworks > Node.js and NPM and click "Enable" under Code Assistance.

Upvotes: 4

Related Questions