【问题标题】:Change terminal in visual studio code by iTerm2 with Powerlevel10k通过 iTerm2 使用 Powerlevel10k 更改 Visual Studio 代码中的终端
【发布时间】:2020-06-15 16:49:10
【问题描述】:

我正在尝试更改我的 VScode 终端。我关注了这个tutorial

我的 iTerm 终端已完美更改:

我尝试像这样在 VScode 中编辑我的 settings.json 文件:

{
    "terminal.external.osxExec": "iTerm.app",
    "terminal.integrated.shell.osx": "/bin/zsh",
    "terminal.integrated.fontFamily": "'SourceCodePro+Powerline+Awesome Regular'"
}

但我得到了这个不同的结果:

我不明白为什么参数不一样,有些图像在VScode中没有传递。

【问题讨论】:

    标签: macos visual-studio-code terminal configuration iterm2


    【解决方案1】:

    最后,"terminal.integrated.fontFamily" 指出(显然)非 ASCII 字体。 Visual Studio Code 中的 settings.json 文件应该是:

    {
        "terminal.external.osxExec": "iTerm.app",
        "terminal.integrated.shell.osx": "/bin/zsh",
        "terminal.integrated.fontFamily": "MesloLGS NF"
    }
    

    【讨论】:

    • 谢谢,我在 vscode 中的格式也遇到了同样的问题。添加上面的字体就是答案,最终解决了问题。
    • 我认为定义shell的默认方式改为"terminal.integrated.defaultProfile.osx": "zsh"
    猜你喜欢
    • 2019-04-03
    • 2021-10-17
    • 2023-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多