【发布时间】:2020-02-13 00:08:06
【问题描述】:
当我尝试在没有管理员权限的情况下启动 Visual Studio Code 时,我收到类似“您的系统上似乎没有安装 git”的 VSCode 报告。
我从https://git-scm.com/安装了git(2.23.0)
和
来自https://code.visualstudio.com/的Visual Studio Code (1.39.2)
当我以管理员权限启动 VSCode 时,git 被正确检测到。
我尝试在 Windows 环境 PATH + 重启 PC 上添加 git 路径 -> 无效。
我尝试在 VSCode setting.json 上添加 git 路径 + 重启,如:
{
// Is git enabled
"git.enabled": true,
// Path to the git executable
"git.path": "C:\\path\\to\\git.exe"
// other settings
}
--> 那也没用。
如果我使用“显示 Git 输出”,报告会显示正确的路径,但不会检测到 git 安装。
【问题讨论】:
标签: git visual-studio-code administrator