The ESP32 works with the Arduino IDE with the installation of the ESP32-Arduino Core and the integration between these two is remarkable. Once you install the ESP32-Arduino Core, you get access to a large variety of development kits that are based on the ESP32, and you also get a lot of example sketches.