Search code examples
pythonvisual-studio-coderight-to-lefthebrew

How to get RTL (right-to-left) text working in VS Code integrated terminal?


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


Solution

  • 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