今天,我在PowerShell中安装了高级git,但是图标没有显示,而是显示一个带有问号的矩形框。以下是我遵循的步骤:
Install-Module oh-my-posh -Scope CurrentUser
然后
Install-Module posh-git -Scope CurrentUser
对于这两个包,我选择了是所有选项。
安装软件包后,我打开了Microsoft.PowerShell_profile.ps1文件并添加了以下代码片段:
Import-Module oh-my-posh
Import-Module posh-git
Set-PoshPrompt -Theme M365Princess
# M365Princess is the theme name I found from oh-my-posh doc在VS代码settings.json之后,我添加了这个"terminal.integrated.fontFamily": "Fira Code"。
我已经安装了Fira Code Medium Nerd Font Complete Windows Compatible字体。
然后由VS代码重新启动。颜色显示完美,也有一些图标,但也有一些是缺失的例子,在下面的屏幕截图。

请帮我解决这个问题。
https://stackoverflow.com/questions/72906816
复制相似问题