I'm using VSCode Arduino extension to develop and program my Raspberry Pi Pico. I've installed everything correctly, and it is compiling as it should, but I get a spell check red underline in below the first line mentioning 2 issues:
- #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (D:\path\to\project)
- cannot open source file "lwip/init.h" (dependency of "C:\Users\USER\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\2.6.0\cores\rp2040\Arduino.h")
To fix this, I added these couple of lines in the includePath
of c_cpp_properties.json
:
"c:\\users\\USER\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\** ",
"c:\\users\\USER\\appdata\\local\\arduino15\\packages\\rp2040\\hardware\\** "
That seemed to fix the issue, but every time I compile the code, the configuration gets reset, and it goes back to being without these couple of lines. All of the changes that I make in the file, or through the C/C++ configuration tabs.
How do I make it so that it doesn't overwrite my changes in the configuration with the default ones?