详细文档查看:https://juejin.cn/post/6979534282649763847

旧版VScode 的 git bash 终端配置如下:

"terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe"

当VSCode升级至1.57.1(2021.6.17)时,会出现警告提示:
此项已弃用,配置默认 shell 的新推荐方法是在 #terminal.integrated.profiles.windows# 中创建一个终端配置文件,并将其配置文件名称设置为 #terminal.integrated.defaultProfile.windows# 中的默认值。此操作当前将优先于新的配置文件设置,但将来会发生更改。
在这里插入图片描述

VSCode 官方配置文档:https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration

新版配置如下:
在这里插入图片描述

GitHub 加速计划 / term / terminal
8
0
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:4 个月前 )
b25fe55e Fix some potential issues that may be exposed after upgrading the compiler and dependencies. For detailed explanations, see the comments. 2 天前
7cd46c03 Fixes * Cursor vanishing, because ```cpp CoreWindow::GetForCurrentThread().PointerCursor() ``` returned a non-null, but still invisible cursor. * Alt/F7 not dispatching to newly created windows, because the `WM_ACTIVATE` message now arrives before the `AppHost` is initialized. This caused the messages to be delivered to old windows. * Windows Terminal blocking expedited shutdown, because we return `FALSE` on non-`ENDSESSION_CLOSEAPP` messages. Closes #18331 Closes #18335 ## Validation Steps Performed * Cursor still doesn't really vanish for me in the first place ✅ * Alt/F7 work in new windows without triggering old ones ✅ 2 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐