Now go to Tools--> Board--> ESP32 Dev Module. Now go to Tools-->Port and select port to which your ESP32 is connected. Now click on upload to upload the code. After complete uploading you will find message like this in your output console.