Skip to content

Support for RTL languages #11770

Description

  • VSCode Version: 1.5.0
  • OS Version: windows 10

I can honestly dare to say that this is the best open source editor for web developers but, the missing of the small things like the Arabic language support is really frustrating!!

alexandrudima yes I mean to work with source code files containing Arabic or Hebrew.

Activity

  1. soyeyalon commented on Sep 9, 2016

    @soyeyalon

    Yeah, I'm in the same boat when it comes to Hebrew., even though I don't use Hebrew much in my daily day job, especially when it comes to development but this can come in handy at times so 👍 from me.

  2. alexdima commented on Sep 12, 2016

    @alexdima
    Member

    Al Jazeera Bros (@HamzaAbdullahMoh) eyalsk Do you mean you'd want VSCode to be translated to Arabic or Hebrew or do you mean that you cannot work with source code files containing Arabic or Hebrew ?

  3. added
    info-needed
    on Sep 12, 2016
  4. soyeyalon commented on Sep 13, 2016

    @soyeyalon

    alexandrudima Well, I'll speak for myself, I refer to the capability that allows people to write from right-to-left as opposed to left-to-right.

    Translation isn't needed, I don't use the Hebrew translation at all in any program that I use so personally it's less useful for me but maybe some people would want that too.

  5. elkebirmed commented on Sep 16, 2016

    @elkebirmed

    I think Al Jazeera Bros (@HamzaAbdullahMoh) want to see an RTL vscode editor as an option, and this will be so helpful

    This's the needed information i think 😄

  6. kazemihabib commented on Sep 19, 2016

    @kazemihabib

    👍

  7. elkebirmed commented on Sep 20, 2016

    @elkebirmed

    I think this should be labeled as a requested feaure

  8. added
    feature-request
    and removed
    info-needed
    on Sep 22, 2016
  9. HamzaAbdullahMoh commented on Sep 23, 2016

    @HamzaAbdullahMoh
    Author

    alexandrudima Mohamed Elkebir (@elkebirmed) Habib Kazemi (@kazemihabib) eyalsk Ramya Rao (@ramya-rao-a)
    First of all, a huge thank you for all of you.
    What I really meant is that if I can edit the text in the code itself not the interface, because half of my time I develop sites which they include Arabic texts.
    I am sure some of you had to write some rtl text and find it hard with most of text editors!!

  10. atlanteh commented on May 30, 2017

    @atlanteh

    Just to clarify, the problem is that RTL words get messed up:
    rtlB rtlA looks like rtlA rtlB
    rtlD rtlC engA engB rtlB rtlA looks like rtlA rtlB engA engB rtlC rtlD

  11. 177 remaining items

  12. MasterInQuestion commented on Dec 22, 2023

    @MasterInQuestion

        So overly complex (and likely entirely wrong from the very beginning), that's how it had things 3D broken:
        Differently broken in Different implementations in Different manner...

        Several countries have switched the alphabet to workaround the issue.

  13. sarmadka commented on Dec 25, 2023

    @sarmadka

    So overly complex (and likely entirely wrong from the very beginning), that's how it had things 3D broken: Differently broken in Different implementations in Different manner...

    Several countries have switched the alphabet to workaround the issue.
    

    What?!! Countries switch alphabets for political reasons, not for technical reasons, especially when it's been solved over and over again. Bidi works perfectly fine in Firefox, Chrome, Internet Explorer, Edge, Safari, Office, LibreOffice, GEdit, Kate, Notepad++, Gnome Builder, ......
    The list of apps that got bidi correctly is very long. It's not complex if you are a good programmer.

  14. MasterInQuestion commented on Dec 26, 2023

    @MasterInQuestion

        The technical cause contributes.
        Please trace the relevant posts first.

  15. Hamcker commented on Feb 12, 2024

    @Hamcker

    It's 2024 and our Farsi scripting language is about to release RC version, and still, there is no support for RTL languages.

  16. MasterInQuestion commented on Feb 12, 2024

    @MasterInQuestion

        I tried to address the issue... But really couldn't figure out how.
        See: https://github.com/MasterInQuestion/talk/discussions/2

  17. jgmention commented on Feb 15, 2024

    @jgmention

    we have also strange behaviour with the editor and arabic language.
    Issue: Arabic keywords with hashtags pasted into the query will flip the hashtag symbol to the start of the keyword instead of the end. Spacing is incorrect, and attempting to modify the keywords in the code will not edit where the cursor header is positioned

    STEPS TO RECREATE

    1. copy and paste the following hashtag into the editor: #اليوم_العالمي_للتصلب_المتعدد the hashtag will move to the opposite side of the keyword.

    2. When you copy the keyword, it will add extra spacing.

  18. sarmadka commented on Feb 16, 2024

    @sarmadka

    It's 2024 and our Farsi scripting language is about to release RC version, and still, there is no support for RTL languages.

    Hamit Zekeriya (Hamed Zakeri Miyab) (@Hamcker) We were also waiting for VS Code RTL support while working on Alusus programming language (which has support for RTL scripting), but eventually we gave up and ended up forking Gnome Builder instead. Reach out if you want to give that a try, it's not hard to add Farsi localization and support for your new scripting language. Not as powerful as VS Code, but better than nothing.

  19. mohmmadView commented on Mar 10, 2024

    @mohmmadView

    #11770 (comment)

    I did this method, there was no problem in js, but there was a problem with jsx format and html Do you know the problem, why it shows the codes like this in the editor?

    I would be grateful if anyone could help
    Screenshot_20240310
    )

  20. MasterInQuestion commented on Mar 11, 2024

    @MasterInQuestion

        iAhmadKarmola's design likely considered the JS only.

        The direct cause for your problem is:
        The regular texts and the XML tag delimiters' presentation are not separated per the highlighter's design. (i.e. they are put in the same HTML tag)
        Thus the "direction: rtl" would apparently break things.
        .
        Similar should also occur if you just disable syntax highlighting.

        Eventually the unsolvable part in [ https://github.com/microsoft/vscode/issues/11770#issuecomment-1819265075 ].

  21. mohmmadView commented on Mar 13, 2024

    @mohmmadView
  22. hesami commented on Nov 2, 2024

    @hesami

    It would be greatly beneficial if support for right-to-left (RTL) text orientation could be added to VSCode, particularly for languages such as Persian and Arabic. While the inclusion of these languages is not essential, ensuring that text in these languages displays correctly, especially in chatbot interfaces like Copilot AI Chat, would vastly improve the user experience for many developers.
    Additionally, I suggest that VSCode should automatically detect the text direction and set it accordingly without manual configuration. This would enhance convenience for users writing in RTL languages.

    Image

  23. MasterInQuestion commented on Nov 6, 2024

    @MasterInQuestion

        Bi-Disorder unsolvable:
        https://github.com/MasterInQuestion/attach/raw/main/microsoft/vscode/11770/Bi-Disorder.webp
        "‎این‎ ‎یک‎ ‎متن‎ ‎نمونه‎ ‎به‎ ‎زبان‎ ‎فارسی‎ ‎است‎ - ‎بدی‎-‎راستچین‎ ‎متن‎"

        https://github.com/MasterInQuestion/attach/raw/main/microsoft/vscode/11770/BiDi-New.webp
        https://github.com/MasterInQuestion/attach/raw/main/microsoft/vscode/11770/BiDi-News.webp
        "HTML در RTL" or "LTR در HTML"... Total bemuddled.

        Address Bar Spoofing due to Arabic RTL characters
        https://bugzilla.mozilla.org/show_bug.cgi?id=1704422

  24. mehdisadeghi commented on Dec 28, 2025

    @mehdisadeghi

    fwiw here is the workaround I used to fix the visual alignment for reading (not for writing):

    1. Install Custom CSS and JS Loader extension at your own risk
    2. Save the the following JS code into a file and configure the extension to use it at your own risk:
    (function() {
      const fix = () => {
        document.querySelectorAll('[dir="ltr"]').forEach(el => {
          el.setAttribute('dir', 'auto');
          el.style.paddingRight = "2em";
        });
      };
    
      new MutationObserver(fix).observe(document.body, {
        childList: true,
        subtree: true,
        attributes: true,
        attributeFilter: ['dir']
      });
      fix();
    })();
  25. ericchaindev commented on May 30, 2026

    @ericchaindev

    This also affects the GitHub Copilot Chat experience in VS Code for Persian and other RTL users.

    In Copilot Chat, natural-language messages are often written entirely in Persian/Arabic, while code blocks, file paths, commands, and inline code should remain LTR. Without RTL-aware rendering or a per-surface direction setting, the chat is much harder to read than the same text in an RTL-capable editor/viewer.

    A useful behavior for Copilot Chat would be:

    • direction: auto or equivalent RTL detection for chat message text.
    • Right alignment for RTL natural-language paragraphs.
    • Keep code blocks, inline code, terminal output, file paths, and commands LTR.
    • Apply consistently to both user prompts and Copilot responses.

    This is not only an editor text issue anymore; Copilot Chat has become a primary reading/writing surface in VS Code, so RTL support there would significantly improve usability for Persian and Arabic users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor-RTLfeature-request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions