how can I run the Windows Bash from Visual Studio code as a run task?
Here are some of my many attempts at tasks.json to do this.
{
Try:
{
"version": "0.1.0",
"command": "bash",
"isShellCommand": true,
"args": [ "myShellScript.sh" ],
"showOutput": "always"
}
Or you can add a shebang to your file:
#!/bin/bash
and then write the path to the script:
{
"version": "0.1.0",
"command": "/path/to/script.sh",
"isShellCommand": true,
"args": [],
"showOutput": "always"
}