Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There is no intellisense in vs code node js

There is no intellisence in visual studio code. i have installed and tried many extensions but it does not helping me out. It only shows those functions and variables that are already used in my code file. Here is the list on extension i have installed and the screenshot.screenshot of vs code intellisence and extension that i have installed

like image 313
Usama Khan Avatar asked Mar 04 '19 18:03

Usama Khan


People also ask

Why is VS Code not working IntelliSense?

Why is VS Code suggestions not working? If you're coding in JavaScript or TypeScript and finds that VSCode IntelliSense does work but does not behave properly, it's likely that you've selected the wrong language mode. TypeScript and JavaScript share the same language service, so you need to select the right language.

How do I turn on VS in IntelliSense?

You can enable or disable particular IntelliSense features in the Options dialog box, under Text Editor > C/C++ > Advanced.

Does VS Code have IntelliSense?

You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character such as the . (dot character).


2 Answers

There is no problem with the vs code i just solve this by

npm install --save @types/node

This is one of development dependencies and —save is just an argument that reflect the info related to this in your package.json file

like image 182
Usama Khan Avatar answered Nov 08 '22 02:11

Usama Khan


Use this command in Mac :

sudo npm install -g --save @types/node --unsafe-perm=true --allow-root
like image 28
Manohar Somani Avatar answered Nov 08 '22 02:11

Manohar Somani