VSCode设置命令行终端为Git
2023-09-11 14:19:17 时间
VSCode 自带的终端
集成的终端是windows
系统自带的,看着是不是很丑呢,没有色彩,关键是没有Git
信息,提交前还需要确认是不是当前分支,体验大大的不好。
设置
Ctrl + ,
打开设置界面,搜索shell:windows
,找到这个选项:
点击Edit in settings.json
,然后设置"terminal.integrated.shell.windows"
为本机git
的路径:
{
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "vscode-icons",
"diffEditor.ignoreTrimWhitespace": false,
"workbench.editor.enablePreview": false,
"terminal.integrated.shell.windows":"C:\\Program Files\\Git\\bin\\bash.exe"
}
这里需要注意的是,路径是
bin
目录下的bash.exe
,有的小伙伴设置为外面的git-bash
路径,这样的话打开终端会弹出一个git-bash
窗口,而不是在在VSCode集成的终端窗口上。
修改为Git终端后
十分完美有木有!
相关文章
- vscode教程(基础篇)
- nodejs&wsl&vscode&docker开发环境搭建
- vscode vue 片段
- vscode集成eslint
- [VSCode] Adding Custom Syntax Highlighting to a Theme in VSCode
- vscode设置侧边栏字体大小
- vscode的自动导包插件:Auto Import
- vscode前端常用插件整理(vuejs)
- vscode怎样打开终端 使用命令行
- vscode frida用户片段
- vscode配置C++
- 使用 Visual Studio Code (VSCODE)写 C51 (持续更新 2018-04-09)
- pip install安装模块配置阿里云源-VScode
- VScode Remote-SSH远程编辑和调试Linux文件代码
- vscode中matplotlib.pyplot 绘制的图像显示不出来