1

If I print in the DEBUG CONSOLE it's fine, every where else VS code display Hebrew just fine, just when the script print to the TERMINAL the Hebrew is upside down, why? enter image description here

Update: it works fine when debugging on external terminal

enter image description here

Kache
  • 15,647
  • 12
  • 51
  • 79
Yam Shargil
  • 445
  • 5
  • 9
  • 1
    Looks like a bug in the IDE. I don't know what we're supposed to be able to do about it. The right place to talk about it is MSDN, I would imagine. – Karl Knechtel Apr 11 '23 at 12:25
  • 2
    is it "upside down"? Or is it backwards? It looks backwards to me from a cursory glance – starball Apr 11 '23 at 16:21
  • 2
    @KarlKnechtel I think it would be GitHub, actually, where development and bug reports of Visual Studio Code takes place (https://github.com/microsoft/vscode). By the way, MSDN was renamed to Microsoft Docs back in 2016. It now goes by Microsoft Docs or Microsoft Learn (as the site subdomain changed ~1 year ago from docs.microsoft.com to learn.microsoft.com). – TylerH Apr 11 '23 at 17:57

2 Answers2

1

This is a known issue with the VS Code integrated terminal since at least VS Code 1.13.0. See Terminal doesn't support RTL languages #28571. The regression in that version had to do with new optimizations and features that assume everything is on a grid that only contains half or full-width characters (source). That issue ticket is closed to be tracked upstream in the xtermjs repo: Support RTL languages #701. You can show your support for the issue ticket by giving a thumbs up reaction to the issue. But please don't make a "me too" comment. "me too" comments generally come off as annoying to repo maintainers because they clutter up discussion and don't contribute anything of significant value.

For your reference / learning purposes, I found those issue tickets by googling "github vscode issues intgrated terminal right to left text".

starball
  • 20,030
  • 7
  • 43
  • 238
0

Solution (or a work around) I found:

In .vscode/launch.json:

"console": "internalConsole" save and reload the VScode window, and start debugging again.

Source: VS Code starts debugging in integrated terminal instead of debug console

This redirects the output to DEBUG CONSOLE instead of TERMINAL. DEBUG CONSOLE doesn't seem to have this problem.

Screenshot 2023-04-12 at 1 33 09



Another option I haven't tried. It might be good if you don't have the Python VScode plugin: https://github.com/microsoft/vscode-cpptools/issues/9696

Yam Shargil
  • 445
  • 5
  • 9