I am using Visual Studio Code in my C++ project. I installed Microsoft C/C++ Extension for VS Code. I got the following error:
#include error
In my case I did not need to close the whole VS-Code, closing the opened file (and sometimes even saving it) solved the issue.