Automatically enables Right-to-Left (RTL) text direction inside Claude Code for VS Code when writing in Arabic, Hebrew, or Persian.
Features
- Auto mode ⭐ — Detects Arabic/Hebrew text and applies RTL automatically per message and per input
- Active mode — Adds a toggle button ع inside Claude Code's interface
- Always mode — Applies RTL to all text unconditionally
- Smart input — Switches input direction based on the first character typed (Arabic → RTL, Latin → LTR)
- Code blocks preserved — Terminal output, code, and tool results stay LTR
How it works
The extension directly patches Claude Code's bundled webview/index.css and webview/index.js files to inject RTL support. A backup is created before any changes, and the extension automatically re-injects after Claude Code updates.
Usage
- Press
Ctrl+Shift+R(or click the status bar item) - Choose a mode from the quick-pick menu
- Reload the VS Code window when prompted
- Open Claude Code — RTL is now active
Modes
| Mode | Description |
|---|---|
| Auto ⭐ | Detects Arabic/Hebrew in each message and applies RTL per element |
| Active | Adds a toggle button inside Claude Code |
| Always | Forces RTL on all text |
| Off | Removes all RTL modifications and restores original files |
Requirements
- VS Code 1.94.0+
- Claude Code extension installed
Commands
| Command | Shortcut |
|---|---|
| Arabic RTL: Choose mode | Ctrl+Shift+R |
| Arabic RTL: Auto (recommended) | — |
| Arabic RTL: Toggle button | — |
| Arabic RTL: Always | — |
| Arabic RTL: Disable | — |
Notes
- After enabling/disabling, reload the VS Code window (
Developer: Reload Window) - The extension automatically re-applies RTL after Claude Code updates
- Code blocks, terminal output, and tool results always remain LTR