1. 程式人生 > >VS Code 中Python 開發環境配置(Settings.json、launch.json、Tasks.json)

VS Code 中Python 開發環境配置(Settings.json、launch.json、Tasks.json)

配置Tasks.json

mac快捷鍵:cmd+shift+b
官方指導文件

我的 tasks.json python配置

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "taskName": "Python",
            "type": "shell",
            "command"
: "${workspaceRoot}/env/bin/python3.5", "args": [ "${file}" ], "presentation": { "reveal": "always", "panel": "shared" }, "group": { "kind": "build", "isDefault": true
} } ] }

Python 自動提示

自動提示實在是太慢了,我使用了dash,安裝了外掛,方便了太多了