Android emulator and device

Is there anyway to have IntelliJ deploy code to a real device (preferred) if one is plugged in, or to an emulator? When I have one of my android devices plugged into my computer, I want to run on the hardware. However, I currently have to go into the run configurations and change which one (device or emulator) to run on.

Please sign in to leave a comment.