VSCode使用记录

# 配置终端使用Git Bash

设置环境变量GIT_HOME,指向Git安装目录,如D:\Program Files\Git

VSCodesettings.json中添加如下配置:

{
    "terminal.integrated.profiles.windows": {
        "Git Bash": {
            //"source": "Git Bash"
            "path":"${env:GIT_HOME}\\bin\\bash.exe"
        },
        "PowerShell": {
            "source": "PowerShell",
            "icon": "terminal-powershell"
        },
        "Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [],
            "icon": "terminal-cmd"
        },
    },
    "terminal.integrated.defaultProfile.windows": "Git Bash",
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

VSCode的配置可以设置多端同步,但是不同的电脑环境可能Git安装目录不一样,所以需要设置环境变量,屏蔽掉安装目录的不同。

上次更新: 2023/08/11, 16:44:44
最近更新
01
go-admin-ui项目仿写练手1-登录页
06-29
02
maven依赖问题
06-17
03
JVM相关命令
02-21
更多文章>