linux - VSCode,如何更改默认终端?

标签 linux terminal visual-studio-code gnome-terminal

我不使用 gnome,因此不使用 gnome-terminal,但 VSCode 确实希望我这样做。我搭建了一个新的 asp.net web 项目,可以使用“dnx run”从我的终端正常运行它,但是尝试在 VSCode 中使用“dnx: web”会尝试启动 gnome-terminal,这显然失败了。谁能帮我解决这个问题?

最佳答案

您现在可能已经找到了答案,但是对于遇到这个问题的人来说,现在 Visual Studio Code 中有一个集成终端(2016 年 6 月)

可以使用快捷方式 Ctrl+` 或单击 View 菜单中的 Integrated Terminal 访问集成终端。

默认情况下,它将使用 Windows 命令提示符,但如果您运行的是最新的 Windows 10 版本,您可以通过在用户 settings.json 文件中添加以下条目轻松切换到新的 bash 终端:

{
    ...
    "terminal.integrated.shell.windows": "\\WINDOWS\\sysnative\\bash.exe"
}

或者,您可以添加 powershell、git bin、cygwin 的路径,无论您喜欢什么。

在此处查看更多详细信息: https://code.visualstudio.com/docs/editor/integrated-terminal

关于linux - VSCode,如何更改默认终端?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33421484/

相关文章:

c - printk 格式中 %pa[p] 中 p 的含义

linux - 如何加密 Unix shell 脚本

c - 需要在 shell 脚本中获取 C 程序名称

macos - 在 Mac 终端中使用 emacs 删除键不起作用

linux - 如何找到没有。 bash 字符串中某个字符出现的次数?

ruby - Ruby HTTP 流量的代理

angular - ng : The term 'ng' is not recognized as the name of a cmdlet, 函数 Visual Studio Code 终端

linux - 我已按照 Linux From Scratch 中的说明配置 binutils 2.26,但出现错误 -'c compiler cannot create executable file '

visual-studio-code - 如何在 Centos 7 中运行/启动 VsCode

visual-studio-code - 通过命令行为 VS Code 完成 Rust 插件安装