Create and Run Dart Console Application Using VSCode?

There is an easy way to create and run a Dart console application:

  1. Open VSCode

  2. Press cmd + shift + p on Mac or ctrl + shift + p on windows.

  3. Choose Dart: New project

enter image description here

4.Then you should select Console Application

enter image description here

5.After locating console application everything is ready for you 😊

Well, how to run it? So easy!!!🙂

Just go to terminal and type: “dart main.dart”

or copy the main.dart path then type: “dart (paste main file path)”

or press ctrl + F5

enter image description here

That’s it. I hope you enjoy. 😁

Leave a Comment