Answer the question
In order to leave comments, you need to log in
Is it possible to run two shell commands in one task in Visual Studio Code?
There is such a task (in the picture below). It compiles cpp file.
{
"type": "shell",
"label": "g++.exe build active file",
"command": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin\\g++.exe",
"args": [
"-g",
"'${file}'",
"-o",
"'${fileDirname}\\${fileBasenameNoExtension}.exe'",
],
"options": {
"cwd": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
Answer the question
In order to leave comments, you need to log in
Yes, you can .
"dependsOrder": "parallel", // или "sequence"
"dependsOn": [ "Имя задачи 1", "Имя задачи 2" ]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question