Last time I looked, I thought that VSCode/PlatformIO supported both the ESP libraries (ESP-IDF) directly as well as the Arduino libraries (which I think are based on ESP-IDF.)
My personal preference is to use the Espressif libraries rather than Arduino libraries, but I used to program micro-controllers for a living so I'm more comfortable with that development environment.
My personal preference is to use the Espressif libraries rather than Arduino libraries, but I used to program micro-controllers for a living so I'm more comfortable with that development environment.