Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset intellisense in VS Code?

If you make a code change while VsCode is debugging, the intellisense sometimes appears to malfunction with false compile errors. Fastest way to reset or correct it?

like image 236
RMuesi Avatar asked Dec 07 '17 17:12

RMuesi


Video Answer


4 Answers

Restart the TypeScript language service

In VS Code, and in a TypeScript source file (this won't work in a css or json file),

  1. Open the Command Palette (view menu → command palette)
  2. Enter TypeScript: Restart TS server. (type "restart" and it should autosuggest)
like image 148
ChaseMoskal Avatar answered Oct 17 '22 08:10

ChaseMoskal


You may Ctrl+Shift+P or F1, then write "reset.." in command pallete, and choose in popup list "C/C++ Reset IntelliSense database".enter image description here

like image 28
Valex Avatar answered Oct 17 '22 08:10

Valex


For C# use this:

cmd+shift+P or ctrl+shift+P brings up command bar, then OmniSharp: restart OmniSharp. Type restart and it will suggest that.

like image 11
Unicorn Avatar answered Oct 17 '22 07:10

Unicorn


In VSCode, Ctrl + Shift + P and click C/C++ Rescan Workspace works for me.

like image 9
guan boshen Avatar answered Oct 17 '22 06:10

guan boshen