欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > > 文章正文

VSCode python环境运行搭建,vscodepython

来源: javaer 分享于  点击 1738 次 点评:214

VSCode python环境运行搭建,vscodepython


tasks.json

{
    "version": "0.1.0",
    "command": "python",
    "isShellCommand": true,
    "args": ["${file}"],
    "options": {
        "env": {
            "PYTHONIOENCODING": "UTF-8"
        }
    },
    "showOutput": "always"
}

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,
            "externalConsole": false,
            "program": "${file}",
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput"
            ]
        }
    ]
}

相关文章

    暂无相关文章

用户点评