How can I add an ESP8266 board to the Arduino IDE?

How can I add an ESP8266 board to the Arduino IDE?

1. You need to have the Arduino IDE installed.

Link - https://www.arduino.cc/en/software

2. Run application.

3. Go to Arduino (or File on Windows system) → Preferences

Code for paste:

https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json

5. Save a go to Instruments tab Instruments → Board → Board Manager

6. In a new window, search ESP8266 and press install.

Done! Now we can choose board form list.