How to program ESP32 with arduino IDE with C++

how to program ESP32 with arduino IDE with C++, also can use this on BPI:bit and BPI-UNO32