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

No alt text provided for this image

4.Then you should select Console Application

No alt text provided for this image

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

No alt text provided for this image

That's it. I hope you enjoy. ??

要查看或添加评论,请登录

社区洞察

其他会员也浏览了