简体   繁体   中英

How do I get intellisense/code-completion working in vscode

I've been working with vscode for quite sometime now but I can never get the intellisense to work the way it does in fully featured IDE's or even how it is portrayed in videos. I created a simple repo. https://github.com/dwayne-roberts/vscode-code-completion-test/tree/master/src

And if you check the screenshots I just cannot get it to work.

在此处输入图像描述

It doesn't offer the methods or properties on the class. Only way I can seem to get it to work is to import the class directly.

Can anyone shine some light on this conundrum. I'm convinced it should be able to work this way.

Sometimes, VS Code fails to load IntelliSense, maybe you installed an extension or changed the settings.json file.

Anyways, to solve this problem:

  1. Restart VS Code
  2. Install this extension https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode
  3. Check with some code

The above extension adds more features to the current IntelliSense (AI) and can re-enable IntelliSense.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM