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?
In VS Code, and in a TypeScript source file (this won't work in a css or json file),
TypeScript: Restart TS server.
(type "restart" and it should autosuggest)
You may Ctrl+Shift+P or F1, then write "reset.." in command pallete, and choose in popup list "C/C++ Reset IntelliSense database".
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.
In VSCode, Ctrl + Shift + P and click C/C++ Rescan Workspace works for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With