How to Install a Board Support Package for Arduino

In this example we'll walk through how to install the ESP32 Feather board support package. You will need Arduino version 1.8 or higher.
  1. Navigate to File -> Preferences (on Windows) or Arduino -> Settings (on Mac).
Arduino settings nav
  1. Paste the following board support package URL into the Additional Boards Manager URLs field.
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
Board support package URL
  1. Navigate to Tools -> Board... -> Boards Manager...
Boards manager navigation
  1. In the Boards Manager, search for "esp32" and install the library by Espressif.
Install board support package
  1. Select your ESP32 board.
Select your board