user2281858
user2281858

Reputation: 1997

how to enable intellisense in Visual Studio Code?

I have been trying to get the IntelliSense activated inside VS Code.

When i do a gulp., it is not giving me options like task

enter image description here

Upvotes: 4

Views: 1978

Answers (2)

user5237222
user5237222

Reputation: 31

After installing typings and:

typings install dt~gulp --global // --ambient deprecated use --global

Then click on green light bulb in bottom-right corner of VSC, and add a jsconfig.json file

Check out:

https://code.visualstudio.com/docs/runtimes/nodejs#_adding-a-jsconfigjson-configuration-file

You don't have to use

///

anymore... Also, you may need to close (using the "x") gulpfile.js, jsconfig.json, and package.json in the "Working Files" for jsconfig.json to recognize workspace.

Upvotes: 1

Louay Alakkad
Louay Alakkad

Reputation: 7408

You need to install gulp's typings file. I'm also not sure whether intellisense works without typescript for external modules.

npm i -g typings
typings init
typings install gulp --save-dev

Upvotes: 1

Related Questions