From 64e207df7295655703471fb6a6812da8eab97893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= <2712495353@qq.com> Date: Wed, 1 Jul 2026 22:48:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20VSCode=20=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=BB=A5=E4=BC=98=E5=8C=96=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 合并 idf.openOcdConfigs 为单行格式 - 更新 idf.pythonInstallPath 为 idf.pythonBinPathWin - 添加 idf.toolsPath 和 ESP_IDF_VERSION 变量 - 修改 clangd.path 以指向新的工具路径 - 更新 compile-commands-dir 路径以反映新的工作目录 --- .vscode/settings.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 6029e93..1e00007 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,20 +1,21 @@ { "C_Cpp.intelliSenseEngine": "default", "idf.extensionActivationMode": "always", - "idf.openOcdConfigs": [ - "board/esp32s3-builtin.cfg" - ], + "idf.openOcdConfigs": ["board/esp32s3-builtin.cfg"], "idf.port": "/dev/ttyACM0", "idf.currentSetup": "C:\\esp\\v6.0.1\\esp-idf", - "idf.pythonInstallPath": "C:\\Espressif\\tools\\python\\v6.0.1\\venv\\Scripts\\python.exe", + "idf.toolsPath": "C:\\Espressif", + "idf.pythonBinPathWin": "C:\\Espressif\\tools\\python\\v6.0.1\\venv\\Scripts\\python.exe", "idf.customExtraVars": { - "IDF_TARGET": "esp32s3" + "IDF_TARGET": "esp32s3", + "IDF_TOOLS_PATH": "C:\\Espressif", + "ESP_IDF_VERSION": "6.0.1" }, - "clangd.path": "C:\\Espressif\\tools\\xtensa-esp-elf\\esp-15.2.0_20251204\\esp-clang/bin/clangd", + "clangd.path": "C:\\Espressif\\tools\\esp-clang\\esp-20.1.1_20250829\\esp-clang\\bin\\clangd.exe", "clangd.arguments": [ "--background-index", "--query-driver=**", - "--compile-commands-dir=C:\\Users\\yulinling\\work\\work-hardware\\HeavenlyHeroStar\\build" + "--compile-commands-dir=d:\\work\\work-hardware\\HeavenlyHeroStar\\build" ], "idf.flashType": "UART", "idf.portWin": "COM5"