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).
Related
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
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.
This is what my settings is looking like:
This is the weird spacing between letters in terminal:
Why is the font on my VS Code's terminal have this weird spacing between letters? It is really bugging me and I tried to change the font in the settings to a monospace font (inconsolata), but that hasn't worked.
I think those big spaces between the characters comes from your exotic chosen font (Inconsolata). So change only "terminal.integrated.fontFamily": "Inconsolata" back to the default font:
"terminal.integrated.fontFamily": "Monaco"
And look, to need the double-quote, and not some triple quote like in your screenshot!
This usually happens when the chosen font is not installed on your system. Try to revert the font settings by removing or commenting these two lines:
"terminal.integrated.fontFamily": "Inconsolata"
"Editor.fontFamily": "Source Code pro"
The default font is usually the default monospace font of your system.
VS Code only accepts unicode fonts.
Try to setup:
"terminal.integrated.fontFamily": "monospace"
Using "MesloLGS Nerd Font Mono 11" as the integrated terminal family font fixed this issue.
Don't forget to make sure it is the integrated terminal family font you're setting and not the editor's family font.
I am using the font "Cascadia Code" as my default font in Visual Studio Code. I don't want font ligatures in my editor. By default, "editor.fontLigatures": false is set, which means font ligatures are disabled by default in Visual Studio Code, and it works, I see no font ligatures in my code. But the problem is, when I am working on a markdown file, which contains code blocks, the source code doesn't show font ligatures, but when I preview the markdown file, I found font ligatures in the preview. Then I explicitly set "editor.fontLigatures": false in my User settings.json. Even then, I see those font ligatures in markdown are still appearing. How do I stop that ?
Changing the font to a font which doesn't support font ligatures doesn't show ligatures in markdown preview, but I want just Cascadia Code. Is changing the font only way ?
Visual Studio Code Version: 1.58.2
Operating System: Ubuntu 20.04 Desktop LTS
I don't know what happend here, the font size of intellisense box in vscode is too small to look clearely.
I found it in setting.json:
"editor.suggestFontSize": 16