Loading

VSCode 更改默认Debug 运行路径为代码所在目录

在全局Setting 里面加入

  "launch": {
    "configurations": [
      {
        "name": "Python: 当前文件,当前路径",
        "type": "python",
        "request": "launch",
        "program": "${file}",
        "console": "integratedTerminal",
        "cwd": "${fileDirname}"
      }
    ],
    "compounds": []
  }
posted @ 2021-10-14 20:54  ZXYFrank  阅读(2109)  评论(0编辑  收藏  举报