Unable to change font in vs code - visual-studio-code

I was trying to change my vs code's font to Roboto Mono, I installed it from google fonts https://fonts.google.com/specimen/Roboto+Mono?query=roboto+mono, and then i configured it in my vs code's settings, and instead of that im getting
this font

Firstly install your font and Try like that:
"editor.fontFamily": "'Roboto Mono', monospace",
Remember to restart VSCode!

Related

VS Code Terminal Font Changed after installing firacode extension. Why?

My Visual Studio Code terminal font has changed for mysterious reasons yesterday from the default font into courier. I checked the settings.json file but nothing changed. Why did this happen?
It happened when I added the firacode fnt into my vscode using the marketplace.
I tried to edit the settings.json file but no result ... it still the ugly font till now

How to force vscode editor to render monospaced charaters (like those in the terminal)?

I use JetBrains Mono + 微软雅黑 fonts in VSCode, both for editor and terminal:
"editor.fontFamily": "'JetBrains Mono', 微软雅黑",
"terminal.integrated.fontFamily": "'JetBrains Mono', 微软雅黑",
But I was suprised to find out that it's rendered differently in the editor and terminal:
editor:
terminal:
As you can see, it's monospaced in terminal, but not in editor. How can this come?
I want to have monospace in editor too! What should I do?

FiraCode font does not display properly on VSCodium

I am setting up VSCodium in my Manjaro KDE environment and I found out that my FiraCode font does not show properly in my integrated zsh terminal. This confuses me, because I thought that FiraCode has Powerline support. I also tried to use some other fonts instead from powerline-fonts, but those did not seem to load properly either.
This is what my integrated terminal looks like at the moment:
As you can see, a character fails to load on the left hand side. This is incorrect behavior as it does load correctly in my Konsole terminal.
This is what it should look like instead (picture is taken from my Konsole terminal):
My settings.json has the following contents:
{
// zsh (with oh my zsh) as default
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.fontFamily": "Fira Code Retina",
// Autosave
"files.autoSave": "afterDelay",
// FiraCode font
"editor.fontFamily": "Fira Code Retina",
"editor.fontLigatures": true
}
For now, I have no idea how to fix this issue nor what exactly causes it.

VS Code Integrated Terminal Not Displaying Special Characters

My VS Code integrated terminal doesn't recognize the git branch symbols, or the forward arrow character, shown in the first screenshot, which displays correctly in iTerm windows and IntelliJ's integrated terminal.
These characters are coming from iTerm, using the terminal setup steps I went through here: https://medium.com/#Clovis_app/configuration-of-a-beautiful-efficient-terminal-and-prompt-on-osx-in-7-minutes-827c29391961
What I want to see in VS Code integrated terminal:
What I currently see in VS Code integrated terminal:
I did come across a solution to add this to my VS Code settings.json, but this setting has since been deprecated as it has been integrated as the default setting in newer vs updates.
"terminal.integrated.experimentalTextureCachingStrategy": "dynamic"
It's not a pressing issue, but personalizing the VS Code terminal with more git info and aesthetics would be really nice using special characters.
Install a powerline/nerdfont font to your system if you haven't already, and then specify that font in the terminal.integrated.fontFamily setting in your settings.json file.
Quoting from the VS Code docs:
Powerline fonts are special patched fonts that contain additional characters that can be used in the terminal. VS Code's terminal renders some of the Powerline symbols without needing to configure a font, but if more glyphs are desired, configure a Powerline font with the font family setting. Powerline fonts typically end in " for Powerline", the following setting is an example of how to configure a DejaVu Sans Mono that has been patched:
"editor.fontFamily": "'DejaVu Sans Mono for Powerline'"
Nerd Fonts work the same and typically have a " NF" suffix, the following is an example of how to configure Hack's nerd fonts variant:
"terminal.integrated.fontFamily": "'Hack NF'"

Unable to get fixed width fonts in VSCode

I start VSCode from Linux terminal and have X11 forwarding to display it back on my Windows PC. I use XMing as the X Server.
The editor comes up fine but all fonts are variable width and have very poor quality. The current setting clearly indicates fixed width fonts but it appears that it does not get used...
editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
I fixed this by changing my Terminal font within MobaXterm Configuration. I set the font to Ubuntu Mono instead of the default (which was Mobafont) and restarted MobaXTerm.
This answer over here pointed me in the right direction.