Reputation: 980
Autocomplete does not work correctly for me, for example :
I tried adding node.js globals but I don't see it in the settings :
Any idea how I can fix this?
Notes :
Upvotes: 2
Views: 1399
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
Reputation: 1222
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