vscode build arduino development environment

Refer to this article about the ESP8266 development environment, which is very detailed. This article is mainly quoted from that article.

  1. Install the arduino plugin.
  2. Click preference, search for arduino, enter the installation path of arduino in Arduino Path, such as D:\Program Files\Arduino, and select arduino_debug.exe for Command Path.
  3. Add the header file index, intellisense can not automatically find the required header file path. Need to force intellisense to use Tag Parser in user settings to retrieve header files recursively.
    Open the settings.json configuration file:
    add 2 lines of code as shown below.
    “C_Cpp.intelliSenseEngineFallback”: “Disabled”,
    “C_Cpp.intelliSenseEngine”: “Tag Parser”,
  4. When compiling, the output content is garbled.
    Find the installation directory of the arduino extension of vscode, find the file util.js, take my computer as an example, (note that the path is different under different computers, usually under the user folder, if you can’t find it Just use the file manager to search directly, recommend a super powerful file search magic Everything ):
    C:\Users\Administrator\.vscode\extensions\vsciot-vscode.vscode-arduino-0.3.2\out\src\common\util.js
    find the 215 lines in the file and comment out the following code.
    Insert picture description hereRestart vscode, the solution is perfect.

Guess you like

Origin blog.csdn.net/qq_30267617/article/details/108266867