Last active
February 10, 2023 03:52
-
-
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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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