VSCode配置python调试环境

1.下载python解释器
2.在VSCode市场中安装Python插件

tasks.json

    {
        // See https://go.microsoft.com/fwlink/?LinkId=733558
        // for the documentation about the tasks.json format
        "version": "2.0.0",
        "tasks": [
            {
                "taskName": "echo",
                "type": "shell",
                "command": "C:\\Python34\\python",//Python可执行文件路径
                "args": ["${file}"]
            }
        ]
    }

4.在用户设置里加两条

settings.json

    "python.pythonPath": "C:\\Python34\\python" ,//路径
    "python.linting.enabled": false,//忘了是什么东西了,反正有用

猜你喜欢

转载自my.oschina.net/u/1777508/blog/1789300