use*_*291 2 visual-studio-code
我按照如何在VS Code中添加多个终端的说明进行操作?
当我输入Ctrl+ Alt+ S(我的自定义快捷方式)时,只列出了Powershell和Git Bash,而cmd和wsl不存在,为什么它们会丢失?
扩展程序设置中的路径不正确!
您可以通过在Windows控制台(cmd)中运行以下命令来查找必要的路径:
where cmd (对于cmd)
where powershell (适用于PowerShell)
where bash (对于Git bash,WSL Bash)
以下是64位窗口的可能选项之一:
"shellLauncher.shells.windows": [
{
"shell": "C:\\Windows\\SysWOW64\\cmd.exe",
"label": "cmd"
},
{
"shell": "C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe",
"label": "PowerShell"
},
{
"shell": "C:\\Program Files\\Git\\bin\\bash.exe",
"label": "Git bash"
},
{
"shell": "C:\\Windows\\System32\\bash.exe",
"label": "WSL Bash"
}
]
Run Code Online (Sandbox Code Playgroud)
然后,您可以使用快捷方式选择所需的一个:
{
"key": "ctrl+alt+s",
"command": "shellLauncher.launch"
}
Run Code Online (Sandbox Code Playgroud)
之后,您可以在终端面板中选择列表中的一个.
| 归档时间: |
|
| 查看次数: |
977 次 |
| 最近记录: |