i am trying to use vscode and the arduino-cli. The extension is working correctly in veryfing and uploading the code to the board but it keeps highlighting arduino keywords (e.g.: digitalWrite) as errors, and as far as i can tell this should not happen.
I am going to attach the arduino.json, c_cpp_properties.json files in because i read that the problem may lay here.
arduino.json:
{
"sketch": "first.ino",
"configuration": "cpu=atmega2560",
"board": "arduino:avr:mega",
"port": "COM5"
}
c_cpp_properties.json
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\MinGW\\bin\\gcc.exe",
"cStandard": "c89",
"cppStandard": "c++98",
"intelliSenseMode": "windows-gcc-x86"
}
],
"version": 4
}