安装Shell launcher

点击安装

设置文件:keybindings.json

添加如下命令,将shellLauncher.launch设置快捷键。

[{
"key": "ctrl+shift+t",
"command": "shellLauncher.launch"
}]

然后设置cygwin shell

ctrl+shift+P 搜索 terminal
选择 终端设置
或者

直接在绝对路径下修改此文件 C:\Users\lenovo\AppData\Roaming\Code\User\settings.json
添加如下内容:


"shellLauncher.shells.windows": [
{
"shell": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"label": "PowerShell"
},
{
"shell": "C:\\Windows\\System32\\cmd.exe",
"label": "cmd"
},
{
"shell": "E:\\network\\Cygwin\\bin\\bash.exe",
"args": ["-l"],
"env": {"CHERE_INVOKING": "1"},
"label": "Cygwin Bash"
},
]

使用:

ctrl+shift+t 就会弹出对应的终端shell选择。