Fix Hebrew, Arabic and Persian text rendering in the Claude Code extension (VS Code & Cursor).
After patching, Hebrew text in the Claude chat panel renders correctly right-to-left — lists, tables, blockquotes, all of it.
1. Clone the repo
git clone https://github.com/liortesta/claude-code-rtl.git
cd claude-code-rtl2. Apply the patch
powershell -ExecutionPolicy Bypass -File .\patch.ps13. Reload VS Code / Cursor
Ctrl+Shift+P → Developer: Reload Window
That's it. Works for both Cursor and VS Code.
# Check if RTL is active
powershell -ExecutionPolicy Bypass -File .\patch.ps1 -Status
# Remove RTL and restore original
powershell -ExecutionPolicy Bypass -File .\patch.ps1 -Restore
# Auto-reapply after Claude Code updates
powershell -ExecutionPolicy Bypass -File .\patch.ps1 -WatchThe Claude Code webview uses CSS Modules with hashed class names that change every build.
Instead of targeting specific class names, the patch applies unicode-bidi: plaintext to
all leaf prose elements (p, li, h1–h6, blockquote, td/th) — the browser's own
Unicode Bidi Algorithm handles the rest. Code blocks stay LTR.
The original index.css is backed up with a .crtl-bak suffix. -Restore brings it back exactly.
MIT