3
我tasks.json看起來是這樣的:幾個「構建任務」爲Visual Studio代碼(蟒蛇)
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
// A task runner that runs a python program
"command": "python3",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true
},
"args": [
"${file}"
]
}
當我運行ctrl+shift+B
頂部面板詢問「選擇構建任務運行」,並有一個替代方案:python3
。現在,如果我想添加一個新的構建任務(例如使用scrapy的runspider
命令),那麼它會添加到構建任務中。我將如何去添加這個?
謝謝!兩種選擇都起作用,這真的寫得很好,很棒! – MrJalapeno
VSCode現在在tasks.json和launch.json中有IntelliSense。 – sauravsahu