如何 运行 Dart 控制台应用程序?

How to run a Dart Console Application?

我只是按照https://www.dartlang.org/docs/dart-up-and-running/ch01.html去运行一个Dart控制台应用程序,但是结果是‘HTML找不到文件’。

如果您想知道如何从 DartEditor 启动它,只需在 Files 视图中右键单击该文件并选择 Run。如果单击工具栏中的 Run 按钮,可能会启动之前启动的文件(自 1/2 年以来未使用 DartEditor)

如果你想从命令行启动它 运行 dart bin/main.dart