PlatformIO Community

Switching between envs via GUI

Currently I have several different envs defined in my platformio.ini: one for debug builds, one for release builds, one for OTA flashing etc.

Is there an easy way to switch between these envs? Preferably via the GUI?

Currently I always need to change the default_envs setting in my platformio.ini. That is not very comfortable. I would like to have some kind of drop down selection box, where I can choose the current env I want to use.

Do you use PlatformIO IDE for VSCode? It has task explorer where you can run specific env based task.

1 Like

As Ivan mentioned, if you’re using VSCode as your IDE, you can use the Project Tasks section to work with the different environments… ie. in this screenshot I can do either 2 or 3 at will…

1 Like