Install ESP-IDF and Tools
After installing Visual Studio Code (VS Code), install the ESP-IDF extension for VS Code.
Navigate to
View>Extensionsor the keyboard shortcut Ctrl+Shift+X in Windows/Linux or Shift+⌘+X in macOS.Search for ESP-IDF in the list of extensions.
Install the ESP-IDF extension.
Navigate to
View>Command Palette.Type
ESP-IDF: Open ESP-IDF Installation Managerto download and run the ESP-IDF Installation Manager to install the ESP-IDF framework. A loading notification will appear, followed by the execution of the installer.
Note
For versions of ESP-IDF < 5.0, spaces are not supported in configured paths.
Alternatively, you can download the ESP-IDF Installation Manager from the following link ESP-IDF Installation Manager among the following options:
Download: Faster speed in China using Espressif download servers.Github: Using GitHub release links.
Use the ESP-IDF Installation Manager to install the ESP-IDF and tools. If necessary, here is the ESP-IDF Installation Manager Documentation.
In Visual Studio Code, navigate to
View>Command Paletteand typeselect current esp-idf versionand select ESP-IDF: Select Current ESP-IDF Version from the list. The list of available ESP-IDF setups will be shown, select which one you want to use for the current ESP-IDF project.The selected setup will save a idf.currentSetup with selected ESP-IDF path and the extension will configure required environment variables for the current ESP-IDF project saved as workspace folder state.
You can review the setup by running the ESP-IDF: Doctor Command by navigate to
View>Command Paletteand typedoctor commandand select ESP-IDF: ESP-IDF: Doctor Command from the list.
The next step is to Create an ESP-IDF Project.
Warning
Check the Troubleshooting section if you encounter any issues during installation.
Uninstall ESP-IDF VS Code Extension
To uninstall the ESP-IDF VS Code extension, follow these steps:
Open Command Palette (press shortcut F1) and type
ESP-IDF: Remove ESP-IDF Settings. Select the command to remove all ESP-IDF settings.Navigate to
View>Extensionsor use the keyboard shortcut Ctrl+Shift+X in Windows/Linux or Shift+⌘+X in macOS.Search for ESP-IDF and click the
Uninstallbutton.Remove the following folders:
Go to your ${VSCODE_EXTENSION_DIR} and delete the ESP-IDF plugin folder.
${VSCODE_EXTENSION_DIR} is the location of the extension:
Windows:
%USERPROFILE%/.vscode/extensions/espressif.esp-idf-extension-VERSION/macOS/Linux:
$HOME/.vscode/extensions/espressif.esp-idf-extension-VERSION/
Note
Make sure to replace VERSION with the actual version number of the installed ESP-IDF extension.