How to set up devices for VS Code for a Flutter emulator

前端 未结 16 855
南笙
南笙 2020-12-23 14:42

I\'d like to use VS Code as my editor for Flutter development, but I don\'t know how to get the emulator going. I\'ve installed VS Code on Ubuntu 17.10.

I followed th

16条回答
  •  误落风尘
    2020-12-23 15:12

    For those people using a Mac you can go to your terminal and type

    $ open -a Simulator.app
    

    and this command will open the simulator.

    After that, just go to the Debug option and tap on "Start Debugging"

    If you want to test with an Android Emulator:

    What I did was to go first to Android Studio and open a virtual Device with AVD Manager. After that you'll see another devices in your Visual Studio Code

    In the bottom right you'll see now that you have 2 devices connected. Now, you can test with any of this devices.

提交回复
热议问题