ps:我的情况是在对esp32进行编译、烧录时,找不到按钮,无法识别Arduino文件,适合已经有ini文件的情况。
1.在vscode中安装拓展

2.打开设置,点击右上角,转到settings.json文件

3.复制以下代码并保存
            
            
              javascript
              
              
            
          
          {
	"arduino.path": "C:\\Program Files (x86)\\Arduino",	//注意,这里填入你自己Arduino安装路径,也就是前面配置的Path路径
    "C_Cpp.intelliSenseEngine": "Tag Parser",
    "editor.insertSpaces": true,
    "files.autoGuessEncoding": true,
    "arduino.logLevel": "info",
    "explorer.confirmDelete": false,
    "editor.detectIndentation": false,
}