先看下最終的樣子,色值還可以調,我本機使用的是iTerm2
1.png
自己配置了iTerm2, 導致VSCode上的終端有亂碼,然后想著肯定可以修改,就去問了下度娘,好多說在設置中配置下這兩個參數:
"terminal.integrated.shell.linux": "/bin/zsh",
or
"terminal.integrated.shell.osx":"/bin/zsh",
然而我本地的默認已經使用了"/bin/zsh",這是再配置iTerm2時設置的。修改后仍然不正確,那肯定是其他問題。然后在文檔中(參考文檔 https://code.visualstudio.com/docs/getstarted/settings)繼續尋找,直到看到下面的一段:
// Controls the font family of the terminal, this defaults to `editor.fontFamily`'s value.
"terminal.integrated.fontFamily": "",
心想難道只是字體的問題,就抱著試試的心態修改字體為iTerm2中的字體
2.png
然后,就沒有然后了,就是最終的樣子。
如果設置了上面一句,有錯誤提示或者不好使,可以再加上下面這句:
"editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace,Meslo LG L for Powerline",