vscode 中使用命令方式运行dart 前提:确保安装了dart,vscode 1.确保执行的dart文件在终端栏目录下,准备执行的是dart-function.dart,代码如下: void main(List<String> args) { print(args); } 2.执行操作及结果如下: vscode中执行dart代码