Frequent COM port in use errors - ESP32 - Windows

More than 50% of the time I use “Upload and Monitor” PIO reports the COM port is in use. It should not be in use, I have tried deleting the “Upload and Monitor” terminal in VSCode, it doesn’t always fix the issue either.

This is a huge hit to efficiency when in the edit/compile/test cycle.

Anyone have a recommendation as to how to address this?

Check whether another VS Code terminal, Arduino Serial Monitor, PuTTY, Tera Term, etc. has the COM port open.

Hi, three try to check the port first via device list and then add this port during upload.