I have two copies of Visual Code with PlatfromIO. I am writing code for Arduino UNO board. On one computer all is fine. On the second computer the same code give me an error on the “Serial” code word. It says it is not part of the language. Both computers are running Windows 10.
Please show a screenshot of VSCode on the computer that’s not working that shows the error, and a screenshot of the installed extension list.
I found the issue. The files though showing in the workspace in VS were not files that PlatformIO recognised as being files belonging to it. I had to add the projects to PlatformIO and then they worked correctly.