Idea for enhancement of the IDE

I use pio with workspaces and often have two projects open simultaneously. I also often forget to change the context when uploading code and end up loading to the wrong avr…

So my suggestion is could the context change to match the currently active code file?

For example I have a stepper motor code file and a shaft encoder code file loaded into the same workspace. If I’m working on the stepper file, when I click the upload icon the code would be loaded to the MCU specified in the pio.ini file. Ditto the shaft encoder.

Currently I have to remember to click the context icon before upload.

Thanks for considering.

Already covered and solved in Having to separately select a default to compile and upload since v2.3.0 · Issue #2410 · platformio/platformio-vscode-ide · GitHub through a setting.