Project configuration VSCode + PlatformIO + arduinoespressif32

If it is a pure Arduino project (framework = arduino) please see this post:
Modifying Arduino ESP32 setup with menuconfig and maxgerhard’s answer.