I am trying to use VS Code with pros. I understand that build and uploading have to be done through the terminal. I have installed the VS Code C/C++ extension. But for some reason, VS Code is giving me a ton of random errors, I have attached the images below, I have no idea how to fix this. Please Help.
The main issue that you’re seeing is that you need to tell VS Code about the include folder, as that’s where all the headers are. It can’t find them, so everything is erroring. There are a couple of other things that may be needed (eg we aren’t using the amd64 gcc that the linter might use by default).
The pros CLI will spit out a compile_commands.json which contains this information, which is what we use for atom. I don’t know VS Code well enough to know if it can accept that, but, if not, adding the include folder will solve your immediate issue.