vscode 设置终端无效

The Windows profiles to present when creating a new terminal via the terminal dropdown. Set to null to exclude them, use the source property to use the default detected configuration. Or, set the path and optional args

vscode setting.json

// ...
"terminal.integrated.profiles.windows": {
  "PowerShell": {
    "source": "PowerShell",
    "icon": "terminal-powershell"
  },
  "Command Prompt": {
    "path": [
      "${env:windir}\Sysnative\cmd.exe",
      "${env:windir}\System32\cmd.exe"
    ],
    "args": [],
    "icon": "terminal-cmd"
  },
  "GitBash": {
    "source": "GitBash",
    // "path": ["D:\Programs\Git\bin\bash.exe"],
    "icon": "terminal-bash"
  }
},
"terminal.integrated.defaultProfile.windows": "GitBash",
原文地址:https://www.cnblogs.com/guangzan/p/14999982.html