Reputation: 373
I've used vscode for some time, and I have never experienced this, but suddenly the integrated terminal started acting weird. There is a space between every letter, and the cursor appears one line above the writing position. This screenshot should clarify:
I've tried to change my terminal settings, and after changing an arbitrary terminal setting it immediately goes back to normal. But when I create a new terminal it's formatted wrongly, and I have to change a terminal setting to fix it. Do you know what's going on?
Upvotes: 24
Views: 16032
Reputation: 542
For 2025
Here is the short process for vscode versions
Upvotes: 0
Reputation: 31
Go to settings and search for font-family and make sure you are using Monospace fonts (a font where each character occupies the same amount of space on a horizontal line of text)
To check if a font is monospace just google 'is font_name monospace ?'
Or see the [list] [1]
of monospace fonts.
Note fonts are loaded as per the order in the array ['first_font', 'second_font', 'third_font',.....]
So if 1st font is not available second will be loaded
Upvotes: 3
Reputation: 1335
In addition to @TechSolomon, @herve and @Emilio's answers, I've found the issue arises often when using multiple integrated VS Code terminals.
The fix that worked for me without quitting your terminal was to open Settings
and go Terminal > Integrated: Font Family
, and replace the fonts in the list with something safe like monospace
. This forces the terminals to re-render their text:
"terminal.integrated.fontFamily": "'Source code pro', 'Fira Code', Consolas, monospace"
>>>
"terminal.integrated.fontFamily": "monospace"
Put back your fonts of choice and it should re-render them correctly.
Upvotes: 2
Reputation: 610
In my case the problem was coming from a missing set of fonts (Cascadia Code PL) After installing them, everything was working fine.
Upvotes: 5
Reputation: 1
It may resolve by reset the setting of font family in vs code. Be careful at a time of choose spelling of font family because it can create problem.
Upvotes: -1
Reputation: 1297
Just resize the terminal in vscode , it will solve the problem.
Upvotes: -3
Reputation: 793
According to another GitHub issue, it looks like this is a known bug and is temporarily resolved by resizing the dimensions of the integrated terminal window.
Upvotes: 22