My terminal is acting weird in vs-code, there is a space between every character?

Viewed 4642

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: enter image description here

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?

6 Answers

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.

In my case the problem was coming from a missing set of fonts (Cascadia Code PL) After installing them, everything was working fine.

Just make sure the spelling of your font Family is spelt right

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

Just resize the terminal in vscode , it will solve the problem.

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.

Related