WinnieThePooh
WinnieThePooh

Reputation: 373

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

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?

Upvotes: 24

Views: 16032

Answers (8)

jam j
jam j

Reputation: 542

For 2025

Here is the short process for vscode versions

  • 1.85.1
  • 1.87.1
  • 1.90.1
  • 1.95.1
  • 1.96.2
  • 1.96.4

enter image description here

Upvotes: 0

athul J
athul J

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

Timmah
Timmah

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

Emilio
Emilio

Reputation: 61

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

Upvotes: 2

herve
herve

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

vivek kumar singh
vivek kumar singh

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

Vikram Sapate
Vikram Sapate

Reputation: 1297

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

Upvotes: -3

TechSolomon
TechSolomon

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

Related Questions