PlatformIO Community

Is it possible to create a new project on the existing code folder?

I have an existing folder which contains src/inc/lib code already, I wonder if it is possible to create a platformio project on this folder, instead of creating a project on a new folder and copying the files into the new folder?

Thanks,
Alex

You can pio init -b <board> --ide=<ide> from the commandline in any folder you wish from the commandline and PIO will not erase your previous folders (but will create missing ones if needed). See documentation. Example (in some folder with existing src and lib folder):

pio init -b sipeed-maix-one-dock --ide=vscode

will just create the platformio.ini and IDE integration files (here: for VSCode)

Ok, it works.

Thanks,
Alex