Fix permissions on /dev/ttyUSB0 (Linux only)

The /dev/ttyUSB0 device belongs to the “dialout” group. Therefore, your user should belong to this group to configure the ESP8266.

Run this command:

sudo usermod -a -G dialout $(id -un)

Then, close Visual Studio Code and re-run it with the new group membership:

su -c code $(id -un)