Click “OK” and head to Tools > Board > Boards Manager. Search for “ESP8266” and install the package, which includes the Arduino core for ESP8266.
Now, go back to Tools > Board and select “Generic ESP8266 Module” from the list. This setup is compatible with various operating systems, including Windows, Linux, and Mac OS.
That’s it! Your IDE is now set up to flash ESP8266 code, and you’re just one step away from uploading your first ESP8266 Arduino sketch. Once the setup is complete, you can upload code to ESP8266 using the Arduino IDE.