3. 点击“编辑 in settings.json”按钮,进入settings.json文件的编辑界面。 4. 在settings.json文件中,找到'terminal.integrated.shell.windows'选项,将其值设置为Git Bash的安装路径。 5. 保存并关闭settings.json文件。 四、配置Git Bash 1. 打开Git Bash,输入以下命令来配置Git的全局用户名和邮箱: ` git conf...
1. 安装, 直接去官网安装对应的版本即可 2. vscode配置 首先按照如下操作打开settings.json 然后在settings.json中添加如下配置 "terminal.integrated.profiles.windows": {"JavaScript Debug Terminal": {// 自己的安装路径, 是bin下的bash.exe,别写错了"path":"D:\\Software\\Git\\bin\\bash.exe",// 使自...
"Git-Bash": { "path": "D:\\Program Files\\Git\\bin\\bash.exe", "args": [] } }, "terminal.integrated.defaultProfile.windows": "Git-Bash", 此时点击创建命令行窗口,已经显示出Git-Bash了 如果不想默认使用Git-Bash作为命令行的话,置空即可。
使用vscode打开终端(快捷键ctrl+`) 点击终端区域右上角的下拉图标按钮,点击【选择默认配置文件】 点击下拉图标按钮.png 然后选择git bash为默认配置文件 选择git bash为默认配置文件.png 重启一下vscode,默认终端就配置好了
“terminal.integrated.shell.windows”: “C:\\Program Files\\Git\\bin\\bash.exe” “` 这是一个示例,假设你的Git Bash安装路径为“C:\Program Files\Git\bin\bash.exe”。请根据你的实际情况修改这个路径。 步骤5:保存设置文件 在修改完设置文件后,按下Ctrl + S(在Mac上是Cmd + S)保存文件。
Sysnative\\cmd.exe", "${env:windir}\\System32\\cmd.exe" ], "args": [], "icon": "terminal-cmd" }, "Git-Bash": { "path": "D:\\Program Files\\PortableGit\\bin\\bash.exe", "args": [], "icon": "terminal-bash" } }, "terminal.integrated.defaultProfile.windows": "Git-Bash...
{"terminal.integrated.profiles.windows": {"gitBash": {"path":"D:\\Program Files\\Git\\bin\\bash.exe",//这里是的的bash路径} },"terminal.integrated.defaultProfile.windows":"gitBash"} 示例图 5、保存重启vscode,按ctrl+~键打开终端,完成...
打开终端配置; 找到windows打开setting.json文件 image.png 键入配置文件保存即可 "terminal.integrated.profiles.windows":{"bash":{"path":"D:\\xxx\\Git\\bin\\bash.exe",// 找到自己git安装目录所在xxx\bash.exe"args":[]}},"terminal.integrated.defaultProfile.windows":"bash",...
"terminal.integrated.profiles.windows": { "Git-Bash": { "path": "D:\\program files\\Git\\bin\\bash.exe", "args": [], "icon": "terminal-bash" }, }, "terminal.integrated.defaultProfile.windows": "Git-Bash" 1. 2. 3. 4. 5. 6. 7. 8. 使用...
通常情况下,官网首页的下载按钮默认提供的是User Installer版本,如需下载System版本,可点击右上角的Download按钮后选择。安装完成后,启动VSCode。在左侧菜单栏中,选择“文件”>“首选项”>“设置”来打开设置界面。在搜索框中输入“shell windows”,查找与GitBash配置相关的设置项。点击设置界面右侧的“...