Example from Espressif: https://docs.espressif.com/projects/esp-idf/en/stable/esp32c3/get-started/index.html#introduction
Install the ESP-IDF plugin for VSCode for configuration, build and flashing the device.
See tags section of repository for example code:
- v1-blinky-gpio-led