vscode终端设置为git bash终端

vscode终端设置为git bash终端

解决方法:
1.打开 vscode编辑器
2.打开 左下角齿轮(设置)
3.打开 设置
4.搜索栏搜索 terminal.integrated.shell.windows
5.点击 在settings.json中编辑 或者直接打开 settings.json 文件也可以
6.写入代码:

{
    "terminal.integrated.shell.windows": "F:/Git/bin/bash.exe"
}

最主要的就是 “terminal.integrated.shell.windows”: “F:/Git/bin/bash.exe” 这个键值对代码块
F:/Git/bin/bash.exe 代表的是你的git的bash.exe路径,一般默认在c盘
一定要注意斜杠方向和符号的中英文,必须得是英文

猜你喜欢

转载自blog.csdn.net/weixin_34403976/article/details/104313746