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