user2861571
user2861571

Reputation: 36

Intellisense for Javascript in VSCode not working

I have been searching the web for a answer but cant find it. In vscode i cant get intellisense for javascript working. Example: var name = "test"; var name.to.... here i want it to suggest touppercase, but nothing is happening.

Any good suggestions about fixing this?

Upvotes: 1

Views: 1272

Answers (2)

Rm558
Rm558

Reputation: 4994

Had a situation today, s1 has intellisense, but s2 has Not

adding 'let' to s2 fixed the issue, maybe a scoped variable can help VS code infer the type & provide intellisense.

enter image description here

Upvotes: 0

Yosi Leibman
Yosi Leibman

Reputation: 388

make sure the language selected is set to javaScript. when the file extension is .js it's automatically set the lang to js. if your file does not have the .js extension you just need to set it manually in the bottom bar.

docs

Upvotes: 1

Related Questions