網(wǎng)站首頁(yè) 編程語(yǔ)言 正文
原教程
原教程是在setting.json
配置文件中加上這句:
"terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe",
但新版本的vscode配置卻提示錯(cuò)誤:
This is deprecated, use
#terminal.integrated.defaultProfile.windows#
instead
點(diǎn)擊“詳細(xì)了解如何配置shell”
跳轉(zhuǎn)至官網(wǎng)文檔:https://code.visualstudio.com/docs/editor/integrated-terminal#_configuring-profiles
大致內(nèi)容如下:
新方法
所以對(duì)著文檔信息
把修改好的git pash目錄,添加到到配置文件 setting.json
中即可
"terminal.integrated.profiles.windows": {
"Git-Bash": {
"path": "D:\\Program Files\\Git\\bin\\bash.exe"
},
"PowerShell -NoProfile": {
"source": "PowerShell",
"args": ["-NoProfile"]
}
},
"terminal.integrated.defaultProfile.windows": "Git-Bash",
重啟vs code
即自動(dòng)選擇git bash
終端
也可根據(jù)自己要求,選擇PowerShell
終端
原文鏈接:https://blog.csdn.net/A_zhiyuan/article/details/116930325
相關(guān)推薦
- 2022-07-25 C/C++實(shí)現(xiàn)線性順序表的示例代碼_C 語(yǔ)言
- 2022-09-20 以SortedList為例詳解Python的defaultdict對(duì)象使用自定義類型的方法_pyth
- 2022-01-07 event的srcelement和target
- 2022-07-09 Redis中Bitmap的使用示例_Redis
- 2022-12-12 Android?Cocos?Creator游戲開(kāi)發(fā)平臺(tái)打包優(yōu)化實(shí)現(xiàn)方案_Android
- 2022-04-12 yarn:info There appears to be trouble with your ne
- 2023-04-19 nginx: [error] CreateFile() “D:\nginx-1.21.6/logs/
- 2022-04-18 WPF框架Prism中對(duì)話框Dialog用法介紹_自學(xué)過(guò)程
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過(guò)濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡(jiǎn)單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對(duì)象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支