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.cppand add#include <Arduino.h>at the top.
- Installation and Setup
How to install and configure PlatformIO in VS Code for ESP32 development
- Your First Sketch
Write and upload your first ESP32 program to blink an LED using PlatformIO
- Using the Serial Monitor
Using the PlatformIO Serial Monitor for debugging ESP32 projects