首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >VSCode更改默认终端

VSCode更改默认终端
EN

Stack Overflow用户
提问于 2017-06-08 20:23:16
回答 4查看 267.3K关注 0票数 248

我正在Windows 10 PC上使用Visual Studio代码。我想在Ubuntu上将默认终端从Windows更改为PowerShell。

我该怎么做呢?

EN

回答 4

Stack Overflow用户

发布于 2018-03-03 22:07:40

如果您想选择控制台的类型,可以将其写入"keybinding.json“文件(该文件位于以下路径”文件->首选项->键盘快捷键“中)`

代码语言:javascript
复制
//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" 
}`
票数 3
EN

Stack Overflow用户

发布于 2021-04-09 01:37:12

您可以通过按CTRL SHIFT P键打开命令pallete来更改终端

或者,您可以转到顶部的视图,然后单击“打开命令面板”

然后键入Terminal: Select Default Profile

然后你输入你想要的终端。

票数 1
EN

Stack Overflow用户

发布于 2021-07-01 04:52:36

集成的shell选项仍然有效,但已经折旧。修复方法是使用集成的概要文件:

代码语言:javascript
复制
    "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": []
        }
    }
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44435697

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档