Setup IDE: PlatformIO

Install and configure PlatformIO in VS Code for ESP32 development

PlatformIO is a professional development platform that runs as an extension inside Visual Studio Code. It offers better code completion, project management, and dependency handling than the Arduino IDE.

Choose PlatformIO if you are already comfortable with VS Code or want a more powerful editor. If you prefer simplicity, see the Arduino IDE setup guide instead.

Note: All code examples on this site use Arduino IDE conventions. In PlatformIO, the same code works — just place it in src/main.cpp and add #include <Arduino.h> at the top.