Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>RTL Toggle for Claude CodeNew to Visual Studio Code? Get it now.
RTL Toggle for Claude Code

RTL Toggle for Claude Code

WTEN

|
3 installs
| (0) | Free
Adds a one-click right-to-left (Arabic, Hebrew, Persian, Urdu) toggle button inside the Claude Code chat. Open source, no dependencies, no network.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RTL Toggle for Claude Code

Adds a small ع button inside the Claude Code chat in VS Code. Click it to read and write right-to-left languages (Arabic, Hebrew, Persian, Urdu) comfortably.

Unofficial community extension. Not affiliated with or endorsed by Anthropic. "Claude" is a trademark of Anthropic.

What it does

  • Every paragraph, list, heading and table cell takes its direction from its own first letter: Arabic goes right-to-left, English stays left-to-right, in the same reply.
  • Your messages and the prompt box follow the same rule.
  • Code blocks and inline code always stay left-to-right.
  • Works while a reply is streaming.
  • Drag the button anywhere. Its position and on/off state are remembered.

How it works (please read)

VS Code does not let one extension change another extension's chat view, so this extension appends a small script to Claude Code's webview/index.js, between the markers /*__CC_RTL_START__*/ and /*__CC_RTL_END__*/. Nothing else is changed.

  • Claude Code updates replace that file. This extension re-applies the script automatically and asks you to reload the window.
  • Claude RTL: Remove (Command Palette) deletes exactly that block, so the file goes back to the original byte for byte. Run it before uninstalling this extension.
  • No dependencies, no network access, no telemetry. The only storage is the webview's localStorage, which keeps the button state and position.
  • The full source is about 300 lines: extension.js and webview-inject.js.

Commands

Command
Claude RTL: Apply / Re-apply Inject the button and ask to reload
Claude RTL: Remove Remove the injected block and ask to reload

Known limits

  • The script finds chat elements by Claude Code's internal class names (userMessage_…, timelineMessage_…, messageInput_…). If a future Claude Code release renames them, the button still appears but some text may not flip until this extension is updated.

بالعربية

يضيف زر ع داخل شات Claude Code لتفعيل القراءة والكتابة من اليمين لليسار.

  • كل فقرة أو بند أو خلية تأخذ اتجاهها من أول حرف فيها: العربي يمين، والإنجليزي يسار.
  • الكود يبقى دائمًا من اليسار لليمين.
  • اسحب الزر لأي مكان، ويتذكّر مكانه وحالته.
  • يعمل بإضافة سكربت صغير إلى نهاية ملف webview/index.js في Claude Code، ويعيد تطبيقه تلقائيًا بعد كل تحديث.
  • للإزالة استخدم الأمر Claude RTL: Remove قبل إلغاء تثبيت الإضافة.
  • لا مكتبات خارجية، ولا اتصال بالإنترنت، ولا جمع بيانات.

إضافة مجتمعية غير رسمية، وليست تابعة لشركة Anthropic.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft