-->

whaust

2020年2月22日 星期六

VS Code . 環境設定

VS Code

settings.json      執行程式
tasks.json          程式碼轉成可執行程式
launch.json        除錯程式

----
tasks.json

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"taskName": "Run Python 1",
"command": "python ${file}",
"type": "shell",
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new",
"focus": true
}
},
{
"taskName": "Run Python 2",
"command": "${config:python.pythonPath} ${file}",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new",
"focus": true
},
"problemMatcher": []
},
{
"label": "Run Python 3",
"type": "process",
"command": "${config:python.pythonPath}",
"args": ["${file}"],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"taskName": "Run Python 4",
"command": "python",
"isShellCommand": true,
"args": ["${file}"],
"showOutput": "always"
},
{
"label": "Run Python 5",
"type": "shell",
"command": "python ${file}",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

沒有留言:

張貼留言

Popular