vscode "#include errors detected. Please update your includePath

后端 未结 2 2033
庸人自扰
庸人自扰 2020-11-28 12:55

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.

2条回答
  •  隐瞒了意图╮
    2020-11-28 13:37

    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

提交回复
热议问题