请确认版别大于或等于以下版别号再往下阅读

vscode版别:1.56.2

版别发布日期:2021年5月12日

前情概要

看了许多文章,都是将terminal.integrated.shell.wiwindows许可证行将过期怎么办ndows装备项设置为bash.exe的途径,把git bash终端集成至vshell脚本scode中。

VScode增加git bash终端

但是新版其他vscode提示不主张持续运giti用此方法:

This is deprecated, the new recommended way to configure your defagit教程ult shell is by creating a terminal profile in #terminwindows10激活密钥al.integrated.profiles.osx# and setting its profile name as the default in #terminal.integrashell的意思ted.defaultProfile.osx#. This will currently takgit教程e priority over the new profiles settings but that will change in the future.(2)

主张咱windows是什么意思们使用#terminal.integrated.profiles.osx##terminal.integrated.defaultProfile.osx#增加终端并装备为默许终端

装备进程

在官网查阅相关文档

首要,装备terminal.integrated.profiles.windows
VScode增加git bash终端

增加Git Bash,path属性填写git的bash.exe途径
VScode增加git bash终端

WindowsseJSONtting.json

然后github中文官网网页,装备terminal.integrated.defaultProfile.windows

VScode增加git bash终端

装备默许终端为Git Bash

VScode增加git bash终端

保存setting.json

重启vscode即可