Updated: Apr 19
Step 1: Open Preferences
Open the File and Click on the Preferences as shown in the figures.
Step 2: Adding ESP8266 Board Manager
In the Additional Boards Manager, enter the below URL.
As highlighted in the figure and enter OK.
Step 3: Adding and Selecting Board
Now open the tools in that select Board: "Arduino/Genuino Uno" and click on the Boards Manager as shown.
Step 4: Board Package
After the Boards Manager window opens, Search "ESP8266" in the search box available at the top of the window. Once you see the module named "esp8266 by ESP8266 Community", select the module and click on the install button. When installed, it shows Installed in the module as shown in the figure and then closes the window.
Step 5: Selecting ESP8266
To run the esp8266 with Arduino IDE, we have to select the Board: "Arduino/Genuino Uno" and then change it to "NodeMCU 0.9 (ESP-12 Module)" or other esp8266 modules, depending on what you have.
After completing these steps, you can run codes using Arduino IDE.
Stay tuned for more updated