Switch from VSC PIO to esp-idf?

Since the version of the esp-idf is not 100% up to date with the one developed by the esp-idf github, how can i switch to the esp-idf completely without losing the project structure? (lib/include etc)
I tried searching for some cmake call from pio but the strace log quickly grew to 44MB with no cmake call, so I am wondering if this is possible.
I am aware that pio does not intend user to switch away from it, but is it possible?