编程知识 cdmana.com

Solve vscode open Zsh garbled code in MAC

1. The code problem

iTerm2 Terminal use Zsh, And configure Zsh The theme , The theme needs to install fonts to support arrow effect , stay iTerm2 Set this font in , however VSCode The arrow in the display is still garbled .

iTerm2 It's shown as follows :

VSCode It's shown as follows :

2. Solution

2.1 typeface

Look in the font book to see if it's installed Meslo LG M for Powerline typeface , If not, install it .

2.2 VSCode Middle configuration

Use ⌘, open settings Interface , Search for terminal, stay Font Family Add font to Meslo LG M for Powerline

It can also be in VSCode Of settings.json file , Join in : "terminal.integrated.fontFamily": "Meslo LG M for Powerline",

3. Effect display

版权声明
本文为[diyxiaoshitou]所创,转载请带上原文链接,感谢

Scroll to Top