'Android Studio automatically connect to Windows Subsystem for Android

As answered here, it's already possible to connect Android Studio to WSA. But, after you restart Android Studio, it disconnects the Android Debug Bridge and you need to run adb connect <WSA instance IP> again.

Is there a way to automatically tell the ADB to connect to WSA when you start up Android Studio, or simply keep it connected?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source