我正在Windows 10 PC上使用Visual Studio代码。我想在Ubuntu上将默认终端从Windows更改为PowerShell。
我该怎么做呢?
发布于 2018-03-03 22:07:40
如果您想选择控制台的类型,可以将其写入"keybinding.json“文件(该文件位于以下路径”文件->首选项->键盘快捷键“中)`
//with this you can select what type of console you want
{
"key": "ctrl+shift+t",
"command": "shellLauncher.launch"
},
//and this will help you quickly change console
{
"key": "ctrl+shift+j",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "ctrl+shift+k",
"command": "workbench.action.terminal.focusPrevious"
}`
发布于 2021-04-09 01:37:12
您可以通过按CTRL SHIFT P
键打开命令pallete来更改终端
或者,您可以转到顶部的视图,然后单击“打开命令面板”
然后键入Terminal: Select Default Profile
然后你输入你想要的终端。
发布于 2021-07-01 04:52:36
集成的shell选项仍然有效,但已经折旧。修复方法是使用集成的概要文件:
"terminal.integrated.defaultProfile.windows": "C:\\Program Files\\Git\\bin\\bash.exe (migrated)",
"terminal.integrated.profiles.windows": {
"C:\\Program Files\\Git\\bin\\bash.exe (migrated)": {
"path": "C:\\Program Files\\Git\\bin\\bash.exe",
"args": []
}
}
https://stackoverflow.com/questions/44435697
复制相似问题