包:get 未安装在 VS Code 上的此应用程序中

Package: get is not installed in this application on VS Code

我正在使用 get_cli 开发 flutter 应用程序。我用命令 get create page:modulename 创建了 2 个模块。但是在我格式化 pubspec.yaml 之后,它在使用命令 get create page:modulename.

时显示以下错误

Package: get is not installed in this application

yaml 格式化程序应在 settings.json

中指定为制表符大小 2
 "[yaml]": {
        "editor.tabSize": 2,
 }