1.安裝vsCode
2.按下 ctril + shift + p
3.接著 輸入 task
4.按下設定工作
5.建立 task.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "msbuild",
"args": [
// Ask msbuild to generate full paths for file names.
"/property:GenerateFullPaths=true",
"/t:build"
],
"group": "build",
"presentation": {
// Reveal the output only if unrecognized errors occur.
"reveal": "silent"
},
// Use the standard MS compiler pattern to detect errors, warnings and infos
"problemMatcher": "$msCompile"
}
]
}
6.按下 ctril + shift + b 執行設定工作
7.如此就可以執行了(如果設定完不能執行 請重開vscode看看)
p.s
如果你是win7版本需要自行設定 path 請到系統的環境變數進行設定
1.C:\Users\Vincent\AppData\Local\Programs\Python\Python37
2.C:\Users\Vincent\AppData\Local\Programs\Python\Python37\Scripts
留言列表