網站首頁 編程語言 正文
原教程
原教程是在setting.json
配置文件中加上這句:
"terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe",
但新版本的vscode配置卻提示錯誤:
This is deprecated, use
#terminal.integrated.defaultProfile.windows#
instead
點擊“詳細了解如何配置shell”
跳轉至官網文檔:https://code.visualstudio.com/docs/editor/integrated-terminal#_configuring-profiles
大致內容如下:
新方法
所以對著文檔信息
把修改好的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
即自動選擇git bash
終端
也可根據自己要求,選擇PowerShell
終端
原文鏈接:https://blog.csdn.net/A_zhiyuan/article/details/116930325
相關推薦
- 2022-04-23 配置基于域名訪問的網站以及指定用戶可訪問的網站
- 2022-12-06 c++入門必學算法之快速冪思想及實現_C 語言
- 2023-10-16 element 表格里,每一行都循環使用el-popover組件,關閉按鈕失效問題如何解決?
- 2023-02-14 OKhttp攔截器實現實踐環節源碼解析_Android
- 2022-07-04 反向傳播BP學習算法Gradient?Descent的推導過程_相關技巧
- 2022-03-27 C++中兩種字符串定義方式和區別介紹_C 語言
- 2022-06-02 C語言深入淺出解析二叉樹_C 語言
- 2022-04-17 WPF框架Prism中使用MVVM架構_實用技巧
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支