I\'m trying to use vscode with arduino but have no success. The problem seems to be something with the libraries path. But I havent been able to fix that ! I\'m on linux.>
This is due to the extension is missing some includepath when initialize
add the missing lines into your c_cpp_properties.json
"includePath": [
"\\tools\\**",
"\\hardware\\arduino\\avr\\**",
"\\hardware\\tools\\**",
"\\hardware\\arduino\\avr\\cores\\arduino"
]
Also add "defines": [ "USBCON" ] under "configurations" to make Serial class work with intellisense