Fixes reversed text and alignment issues in the "Claude Code in VS Code" extension for Hebrew and Arabic users. Works in both VS Code and Cursor.
| 🇮🇱 עברית | 🇸🇦 العربية |
|---|---|
| לקרוא בעברית ↓ | اقرأ بالعربية ↓ |
- Automatic RTL Detection - Automatically detects Hebrew and Arabic text and applies right-to-left formatting
- VS Code & Cursor Support - Works with the "Claude Code in VS Code" extension in both VS Code and Cursor
- Zero Configuration - Works out of the box with a simple toggle button (⇄) in the chat interface
- Smart Text Handling - Keeps code blocks and technical content in LTR for proper readability
- Backup & Restore - Automatically creates backups before modifications, easy rollback available
The "Claude Code in VS Code" extension doesn't natively support RTL text direction. This causes:
- ❌ Hebrew and Arabic text appearing reversed and misaligned
- ❌ Chat conversations becoming hard to read for RTL language users
- ❌ Inconsistent text direction mixing with code blocks
This tool solves these issues by injecting CSS and JavaScript that intelligently handles RTL text while preserving code block formatting and maintaining compatibility with all versions of Claude Code.
- Fixes Text Reversal - Ensures Hebrew and Arabic characters appear in the correct order and alignment
- Terminal Alignment - Automatically adjusts text direction in the Claude Code chat panel
- Claude Code Integration - Specifically tailored for the "Claude Code in VS Code" extension (works in Cursor too)
- Non-Invasive - Works by extending the existing UI without modifying core functionality
כלי Python שמוסיף תמיכה ב-RTL (Right-to-Left) לתוסף "Claude Code in VS Code", מאפשר עבודה נוחה עם שפות עברית וערבית בצ'אט של Claude. עובד גם ב-VS Code וגם ב-Cursor.
הסקריפט מבצע את הפעולות הבאות:
- מאתר אוטומטית את תיקיות ההתקנה של Claude Code (תומך ב-VS Code ו-Cursor על Windows, macOS ו-Linux)
- מזריק CSS - מוסיף כללי עיצוב שהופכים את הטקסט לכיווניות RTL
- מוסיף כפתור Toggle - יוצר כפתור (
⇄) בממשק להפעלה/כיבוי של מצב RTL - שומר גיבויים - יוצר עותקי גיבוי של הקבצים המקוריים לפני כל שינוי
- מאפשר הסרה - אפשרות לשחזר את המצב המקורי בקלות
- Python 3.6+
- "Claude Code in VS Code" - התוסף חייב להיות מותקן (ב-VS Code או ב-Cursor)
- הרשאות לכתיבה לתיקיית ההרחבות (במקרה של Windows עשוי להידרש הרצה כמנהל)
git clone https://github.com/yechielby/claude-code-rtl.git
cd claude-code-rtlpython claude_code_rtl.pypython3 claude_code_rtl.pyלאחר הרצת הסקריפט יופיע תפריט:
=========================================================
Claude Code in VS Code - RTL Text Support (+ Cursor)
=========================================================
1. Add RTL support (all versions)
2. Remove RTL support (all versions)
3. Check status
4. Exit
=========================================================
- הוספת תמיכה ב-RTL - בחר אפשרות
1 - הסרת תמיכה ב-RTL - בחר אפשרות
2 - בדיקת סטטוס - בחר אפשרות
3לראות האם RTL מותקן
לאחר ביצוע השינויים:
- סגור וטען מחדש את חלון VS Code / Cursor (או לחץ
Ctrl+Shift+P→Developer: Reload Window) - הכפתור
⇄יופיע בממשק הצ'אט של Claude
- פתח את פאנל הצ'אט של Claude Code ב-VS Code / Cursor
- לחץ על הכפתור ⇄ בראש הצ'אט
- הממשק יעבור למצב RTL - טקסט יישר לימין
- לחץ שוב על הכפתור כדי לחזור למצב LTR
- ✅ הודעות המשתמש
- ✅ תשובות של Claude (טקסט רגיל)
- ✅ רשימות ופסקאות
- ✅ שאלות ותשובות בממשק
- ✅ קוד (code blocks)
- ✅ כלים (tools) ותוצאותיהם
- ✅ בלוק Thinking
- ✅ פקודות slash
- ✅ כפתורים וממשק
אם ברצונך להסיר את השינויים:
- הרץ את הסקריפט שוב
- בחר אפשרות
2מהתפריט - הסקריפט ישחזר את הקבצים המקוריים מהגיבוי
- אתחל את VS Code / Cursor
claude-code-rtl/
├── claude_code_rtl.py # הסקריפט הראשי
└── README.md # מדריך זה
- וודא שהפלאגין מותקן: Extensions → חפש "Claude Code"
- נסה הרצה כמנהל (Windows): לחץ ימני → Run as Administrator
- אתחל את VS Code / Cursor: סגור לחלוטין ופתח מחדש
- או טען חלון מחדש:
Ctrl+Shift+P→Developer: Reload Window
- Windows: הרץ את CMD/PowerShell כמנהל
- macOS/Linux: השתמש ב-
sudo python3 claude_code_rtl.py
- נקה מטמון:
Ctrl+Shift+P→Developer: Reload Window - בדוק גרסה: הסקריפט תומך בגרסאות עדכניות של Claude Code
- Python 3 - שפת הסקריפט
- CSS - כללי עיצוב RTL
- JavaScript - לוגיקת כפתור ההחלפה
- VS Code / Cursor Extensions - אינטגרציה עם התוסף
נשמח לתרומות! אפשר:
- 🐛 לדווח על באגים - פתח Issue
- ✨ להציע פיצ'רים - פתח Issue עם הצעה
- 🔧 לשלוח Pull Request - שפר את הקוד
פרויקט זה מופץ תחת רישיון MIT - ראה קובץ LICENSE לפרטים.
נוצר כדי לאפשר למשתמשי עברית וערבית לעבוד בצורה נוחה עם התוסף "Claude Code in VS Code" (ב-VS Code וב-Cursor).
אם הכלי עזר לך, תן ⭐ לפרויקט!
أداة Python تضيف دعم RTL (من اليمين إلى اليسار) لإضافة "Claude Code in VS Code"، مما يتيح العمل بسهولة مع اللغات العربية والعبرية في محادثة Claude. تعمل في VS Code و Cursor.
يقوم البرنامج بتنفيذ العمليات التالية:
- يحدد تلقائيًا مجلدات تثبيت Claude Code (يدعم VS Code و Cursor على Windows و macOS و Linux)
- يحقن CSS - يضيف قواعد تصميم تحول النص إلى اتجاه RTL
- يضيف زر Toggle - ينشئ زرًا (
⇄) في الواجهة لتفعيل/إيقاف وضع RTL - يحفظ نسخًا احتياطية - ينشئ نسخًا احتياطية من الملفات الأصلية قبل أي تعديل
- يسمح بالإزالة - خيار لاستعادة الحالة الأصلية بسهولة
- Python 3.6+
- "Claude Code in VS Code" - يجب أن يكون مثبتًا (في VS Code أو Cursor)
- صلاحيات الكتابة لمجلد الإضافات (في حالة Windows قد يتطلب التشغيل كمسؤول)
git clone https://github.com/yechielby/claude-code-rtl.git
cd claude-code-rtlpython claude_code_rtl.pypython3 claude_code_rtl.pyبعد تشغيل البرنامج ستظهر قائمة:
=========================================================
Claude Code in VS Code - RTL Text Support (+ Cursor)
=========================================================
1. Add RTL support (all versions)
2. Remove RTL support (all versions)
3. Check status
4. Exit
=========================================================
- إضافة دعم RTL - اختر الخيار
1 - إزالة دعم RTL - اختر الخيار
2 - فحص الحالة - اختر الخيار
3لمعرفة ما إذا كان RTL مثبتًا
بعد إجراء التغييرات:
- أغلق وأعد تحميل نافذة VS Code / Cursor (أو اضغط
Ctrl+Shift+P→Developer: Reload Window) - سيظهر الزر
⇄في واجهة محادثة Claude
- افتح لوحة محادثة Claude Code في VS Code / Cursor
- اضغط على الزر ⇄ في أعلى المحادثة
- ستتحول الواجهة إلى وضع RTL - سيتم محاذاة النص إلى اليمين
- اضغط على الزر مرة أخرى للعودة إلى وضع LTR
- ✅ رسائل المستخدم
- ✅ إجابات Claude (نص عادي)
- ✅ القوائم والفقرات
- ✅ الأسئلة والأجوبة في الواجهة
- ✅ الكود (code blocks)
- ✅ الأدوات (tools) ونتائجها
- ✅ كتلة Thinking
- ✅ أوامر slash
- ✅ الأزرار والواجهة
إذا كنت ترغب في إزالة التغييرات:
- شغّل البرنامج مرة أخرى
- اختر الخيار
2من القائمة - سيستعيد البرنامج الملفات الأصلية من النسخة الاحتياطية
- أعد تشغيل VS Code / Cursor
claude-code-rtl/
├── claude_code_rtl.py # البرنامج الرئيسي
└── README.md # هذا الدليل
- تأكد من تثبيت الإضافة: Extensions → ابحث عن "Claude Code"
- جرب التشغيل كمسؤول (Windows): انقر بزر الماوس الأيمن → Run as Administrator
- أعد تشغيل VS Code / Cursor: أغلق تمامًا وافتح من جديد
- أو أعد تحميل النافذة:
Ctrl+Shift+P→Developer: Reload Window
- Windows: شغّل CMD/PowerShell كمسؤول
- macOS/Linux: استخدم
sudo python3 claude_code_rtl.py
- امسح الذاكرة المؤقتة:
Ctrl+Shift+P→Developer: Reload Window - تحقق من الإصدار: يدعم البرنامج الإصدارات الحديثة من Claude Code
- Python 3 - لغة البرنامج
- CSS - قواعد تصميم RTL
- JavaScript - منطق زر التبديل
- VS Code / Cursor Extensions - التكامل مع الإضافة
نرحب بالمساهمات! يمكنك:
- 🐛 الإبلاغ عن الأخطاء - افتح Issue
- ✨ اقتراح ميزات - افتح Issue مع الاقتراح
- 🔧 إرسال Pull Request - حسّن الكود
يتم توزيع هذا المشروع تحت ترخيص MIT - انظر ملف LICENSE للتفاصيل.
تم إنشاؤه لتمكين مستخدمي العربية والعبرية من العمل بشكل مريح مع إضافة "Claude Code in VS Code" (في VS Code و Cursor).
إذا ساعدتك الأداة، امنح المشروع ⭐!
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing & Support: Contributions, bug reports, and feature requests are welcome! Please open an Issue or Pull Request on GitHub.