I have had a setup for a while to run C++ programs in VS Code. It was basically a tasks.json which looked like this
"tasks": [
{
"label": "Compile and run",
"type": "shell",
"command": "",
"args": [
"g++",
"${fileBasename}",
"-o",
"test",
"&&",
...
}
I had also kept a settings.json to define the terminal to be used which was command Prompt, For some reason in the latest update for VS Code my setup got messed and it does not work anymore.
I would like to know the right syntax to define cmd
as the terminal for running the tasks since things like &&
<
>
dont work in powershell