Skip to content

Instantly share code, notes, and snippets.

@D1360-64RC14
Last active February 10, 2023 03:52
Show Gist options
  • Save D1360-64RC14/3c8f210a79c10a2d2b8802779f138a74 to your computer and use it in GitHub Desktop.
Save D1360-64RC14/3c8f210a79c10a2d2b8802779f138a74 to your computer and use it in GitHub Desktop.
VSCode task script to run multiple commands within an external terminal. The external terminal used in the example is "terminator".
{
"version": "2.0.0",
"tasks": [
{ // Run with multiple commands on external terminal
"label": "run (external terminal)",
"command": "dotnet",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
"shell": {
"executable": "terminator",
"args": [ "--execute" ]
}
},
"args": [
"run",
"--verbosity", "detailed",
"--project", "${workspaceFolder}/learning.csproj",
";",
"read", "-n", "1", "-p", "\n Press any key to close..."
],
"problemMatcher": "$msCompile",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": true
}
},
{ // Run with single command
"label": "run",
"command": "dotnet",
"type": "process",
"args": [
"run",
"--verbosity detailed",
"--project ${workspaceFolder}/learning.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment