idea terminal中git : 无法将“git”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查
terminal
The new Windows Terminal and the original Windows console host, all in the same place!
项目地址:https://gitcode.com/gh_mirrors/term/terminal
免费下载资源
·
环境
windows 10 系统
git 版本
cmd窗口中可以正常使用git命令,IDEA的Terminal中使用git --version,提示:
无法将“git”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。
请检查名称的拼写,如果包括路径,请确保路径正确
解决方案
1. 打开高级系统设置:
2. 选择环境变量:
3. 选择系统变量中path选项,点击编辑:
4. 找到用户目录下npm的路径,copy后添加到path中
5. 重启电脑,打开idea,在terminal中可正常使用git
相关文章
idea terminal中git : 无法将“git”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查
https://blog.csdn.net/qq_37374836/article/details/121743235
Vscode中出现无法将“git”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确
GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec
"HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 14 天前
e83434ff
Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!).
Bonus points:
- we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly
- ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether.
Validated command palette with multiple high contrast themes. See PR thread for demo.
Closes #17914 14 天前
更多推荐
已为社区贡献10条内容
所有评论(0)