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?
Solution 1:
Restart the TypeScript language service
In VS Code, and in a TypeScript source file (this won't work in a css or json file),
- Open the Command Palette (view menu → command palette)
-
Enter
TypeScript: Restart TS server.
(type "restart" and it should autosuggest)
Solution 2:
You may Ctrl+Shift+P or F1, then write "reset.." in command pallete, and choose in popup list "C/C++ Reset IntelliSense database".
Solution 3:
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.