0

我正在使用 Visual Studio Code 在 LEGO EV3 Mindstorms Brick 上编写 Python 代码(有点类似于 Raspberry Pi 的环境)。当我按 F5 启动代码时,Visual Studio Code 要求我选择以下选项之一:

  • 在交互式终端中下载并运行当前文件
  • 在输出窗格中下载并运行当前文件

这是我的 launch.json 文件:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Download and Run",
            "type": "ev3devBrowser",
            "request": "launch",
            "program": "/home/robot/${workspaceRootFolderName}/main.py",
            "interactiveTerminal": false
        }
    ]
}

有什么我可以添加到我的 launch.json 文件中的东西,这样我就不必每次都做出这个额外的选择了吗?

4

0 回答 0