It’s already been ten months since I published the first preview of Dart Code and today marks a significant milestone - version 2.0! It’s been some time in the making; this major update adds support for launching and debugging Android and iOS apps written using Flutter, including:
- When a Flutter project is open your selected device/emulator will be shown in the status bar
- If you have more than one connected device/emulator, clicking the device name in the status bar will allow you to switch between devices/emulators
F5with a flutter project open will build and launch your app on the selected device/emulator
- The usual debugging experience is available for Flutter apps, including breakpoints, call stacks, watch window etc.
- The debugger’s
Ctrl+Shift+F5) has been mapped to Flutter’s
hot reloadfeature and will update the running application without needing to rebuild (this usually results in sub-second updates!)
In order to get up and running you’ll need to grab a few things:
- Visual Studio Code version 1.13.0 or later
- v2 of Dart Code
- A recent version of the Dart SDK
- For Flutter support you’ll also need to set up Flutter
Finally, to avoid manual configuration you should also add the Dart and Flutter SDKs to your
I’ve never blogged about Dart Code before so I’ve never really said thanks to all those that helped make it possible. It’s a long list! Dart Code builds on a lot of excellent work done by many people at Google (including the analyzer, which powers most of the language and editor support, the VM and debugger, the flutter tooling) and of course many people at Microsoft working on VS Code. I’ve opened a lot of issues, sent a lot of emails and asked a lot of questions in chat rooms for both projects and I’ve had great support. I’ve also had some great contributions including the bulk of the debugger work from Devon and many beta testers who helped iron out issues in the Flutter integration before I unleashed it!