0

I am making a ".vscode" folder with settings.json file and a tasks.json file.

In the settings.json, I have

{
    "type": "process",
    "label": "terminal",
    "command": "/bin/bash",  // <-- your shell here
    "args": [
        "-l"  // login shell for bash
    ],
    "problemMatcher": [],
    "presentation": {
        "echo": false,  // silence "Executing task ..."
        "focus": true,
        "group": "build",  // some arbitrary name for the group
        "panel": "dedicated"
    },
    "runOptions": {
        "runOn": "folderOpen"
    }
}

and in my settings.json I have:

{
    "task.allowAutomaticTasks": "on"
}

However, it is not working for me. Whenever I open up code-server, the terminal is not opening up in that particular folder in which I have the ".vscode" folder in.

Does anyone have suggestions or if I am doing anything wrong?

wjandrea
  • 28,235
  • 9
  • 60
  • 81
  • Related: [Open terminal by default](https://stackoverflow.com/questions/72224141/open-terminal-by-default) and official docs: https://code.visualstudio.com/docs/terminal/basics#_automating-terminals-with-tasks – starball Mar 17 '23 at 18:41

0 Answers0