My VS code font changes to default every time I open up my PC. I need to reinstall the font to use it in VS code. The font works in other apps though. I think there's something wrong with my VS code but I can't figure it out.
Font works when
I reinstall the font.
Once it works, closing/opening the app doesn't reset the font.
Default fonts like courier, consolas always work.
Font doesn't work when
I restart my PC.
Related
My syntax highlighting colors suddenly look like this:
It looks as if the contrast or brightness has been lowered, or that it has been grayed out.
I can still use everything normally.
My colors used to look like this:
My setup:
VSCode 1.75.1
Ubuntu 22.04 (Gnome)
One Dark Pro theme (but I have it with every theme)
Every file gives the same issue, including files in Home directory (to make sure it's not write permissions)
Does anybody know what could be causing and how I could fix this?
I fixed it. I used to have the Adobe "Source Code Variable" configured as a custom font on Windows, and synced my settings to Ubuntu.
I didn't have the font installed but installed it a bit ago.
After changing to another font it is normal again. Seems like this specific font makes it look low in contrast.
Setting variable: editor.fontFamily
I have a problem with Visual Studio Code. I can't change it's font.
What I've Tried:
Changing it in Settings UI
Changing it directly in settings.json
Changing it and restarted Visual Studio Code about 10 times
And many more
Also, I installed it on my PC.
How can I change my font?
I seem to have a bug/error at everything and it seems very hard to fix it.
Like pip, pygame music error, Auto PY to EXE, etc.
The problem with all errors are very hard to fix.
I tried many ways to fix these and it all won't work.
It's with Visual Studio Code font too.
I'm trying to use the Source Code Pro font.
Please make it easy because I'm only 9 years old.
A bit late to the game here...
This can be done using the settings:
Open the command palette: cmd + shift + p or ctrl + shift + p
Type: Preferences: Open Settings
Then search for the setting Editor:Font Family
Your current settings will likely look something like this:
'Droid Sans Mono', 'monospace', monospace
Simply add a system installed font name there (use single quotes for fonts with spaces)
EG: Add OpenDyslexicMono
Change the value of Font Family to the following:
OpenDyslexicMono, 'Droid Sans Mono', 'monospace', monospace
I use Monolisa font for programming and I saw that indentation in VSCode is wrong with Monolisa font. I have no problem with other fonts in VSCode such as Menlo, Fira Code and etc but the confusing point for me is that Monolisa font appears correctly in Jetbrains IDEs. I thought that my vscode configuration missing something but no idea where and why? Here is a screenshot from my VSCode settings.json file and the circles with yellow border shows the indentation which has too small width. Any idea why this issue appears and how to fix it?
OS: Mac OS X
Here you can see my vscode settings.json file with another font (Menlo).
By mistake i deleted default font of vs code now its showing some error.
anyone can tell me default font of vscode so tht i can write moreover you can see my terminal font is also coming on Courier New.
Need to change this HELP
You can see the font
Gear icon to the left has an option to reset setting to default:
I am fairly new to VScode, I wanted to add Ubuntu Mono Font in VScode. I downloaded the file from Google Fonts page. I extracted and Installed all the different Styles that were available. Here is a photo of the downloaded fonts that I had installed.
Then to verify whether the font was installed or not I opened a word file where I could select Ubuntu Mono. On Stackoverflow I came across 2 methods of Changing the Font family, either editing the settings.json file or using the GUI in VScode by writing the Font family name. I am attaching my modified settings.json file here
I tried other options as well like:
"editor.fontfamily":" 'UbuntuMono-Regular', monospace"
"editor.fontfamily":" 'UbuntuMono-Bold', monospace"
"editor.fontfamily":" 'Ubuntu Mono' , monospace"
//here I tried to play around with spaces:
"editor.fontfamily":" ' UbuntuMono ', monospace"
but whatever I do it is showing the same default monospace font. Any Guidance Regarding this will be helpful. My VScode is updated(It shows March 2021 (Version 1.55)) If any more information or Screenshots are required please let me know.
I tried it with the OTF version: UbuntuMono-Regular.otf
Install the font.
The following settings worked.
"editor.fontFamily": "'Ubuntu Mono', monospace"
You have to RESTART VSC
In my case, I am inputing the font name incorrectly,
e.g. I input
'Delugia Mono Regular'
but in fact vscode does not need Regular cause it accepts font family as input, changing it to:
'Delugia Mono'
and it worked.
No need to restart or even save the settings file, the change would appear in 1 second after you've entered a legal fontfamily as input.
Try to disable all installed extensions from vscode and edit the .json file again, choose your font and make sure that it has been installed then save all changes