简体   繁体   中英

My terminal in VSCode has a tiny font after installing zsh and changing font style?

If you look at the vscode terminal - its too tiny. Heres the user settings that I have modified to create this result. I have searched how to change terminal fonts at vscode but I have followed all instructions pertaining to terminal.integrated.fontSize and this doesnt help at all - it only lengthens the line. Please advise - thanks in advance.

在此处输入图片说明

Im sure there are a few answers to this. But to solve mine, I had to change the terminal.integraded.fontFamily . Try these theme "Monaco" for instance. Add this line to your settings.

"terminal.integrated.fontFamily": "Monaco"

If the font size does not change and only increases the letter spacing, try a few checks:

  1. Save the settings and close the vscode editor and re-open a new one.
  2. Try restarting the vscode.
  3. The Font family theme that you select play a huge role in a how it it renders.
  4. Check this font family themes that you can test.

This is my current setting as far as basic visuals for CLI and the editor:

 "explorer.confirmDelete": false, "workbench.sideBar.location": "left", "workbench.statusBar.visible": true, "editor.fontFamily": "Monaco", "editor.fontSize": 12, "terminal.integrated.fontFamily": "Hack", "terminal.integrated.fontSize": 10, "terminal.integrated.lineHeight":1, "editor.tabSize": 2,

Again, these are checks you can do. I hope this helps cause it definitely took me a while to change my view of visual code terminal above to the one I have below now: 在此处输入图片说明

edit: fixed typo in link in item #4

Code > Preferences > Settings > Features > Terminal. Here you can find Integrated: Font Size and change it to your desired size

在此处输入图片说明

Go to Terminal >> Settings >>> font size as described in above screen shot and try updating desired font size and weight

Set the terminal.integrated.fontsize in your user settings to override the original value. I have mine set to 20 . I am old ;)

代码>首选项>设置>在栏上搜索“终端字体大小”>更改字体大小

Also use FontSize Shortcuts , then

Use Ctrl + + for incrementation font size,

Use Ctrl + - for decrementation font size.

Open the Command Palette

Windows: Ctrl + Shift + P MacOS: Command + Shift + P

Enter in "Open Settings (JSON)"

Add "terminal.integrated.fontSize" to the file.

All you have to do is add this line to the file and save: "terminal.integrated.fontSize": 16

Just zoom the whole VS Code's UI in or out with CTRL + + or CTRL + - respectively and than adjust font sizes we do have control over in settings.json file.

Use Ctrl + + for incrementation font size,

Use Ctrl + - for decrementation font size.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM