跳到主要內容

Python within Visual Studio Code

How to set your VS Code to run Python


Step 1.
Intall Python Lintin Extension for VS code


Step 2.
Add the following configuratio to task.json

{
    "version": "0.1.0",
    "command": "c:\\Python34\\python",
    "args": ["app.py"],
    "problemMatcher": {
        "fileLocation": ["relative", "${workspaceRoot}"],
        "pattern": {
            "regexp": "^(.*)+s$",
            "message": 1
        }
    }
}

Done.

留言