[Feature Request] Auto RTL/LTR direction per line based on first character language

Resolved 💬 3 comments Opened Mar 14, 2026 by MaayanBa Closed Mar 18, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

When typing Hebrew text in the Claude Code chat input field,
the text direction remains LTR, causing the text to appear
reversed and unreadable. There is no automatic RTL detection
for right-to-left languages.

Proposed Solution

Add dir="auto" to the chat input textarea element.

This is a single HTML attribute:
<textarea dir="auto" ...>

How dir="auto" works:

  • The browser checks the first strongly-typed character of each

paragraph/line

  • If it is a RTL character (Hebrew, Arabic, etc.) → that block

renders RTL

  • If it is a LTR character (English, Latin, etc.) → that block

renders LTR

  • Direction is evaluated per paragraph, not per character

No JavaScript required. Native browser behavior, supported in
all modern browsers.

Current behavior: Input field is fixed LTR. Hebrew text typed
by the user appears left-to-right, making it unreadable.

Desired behavior: Each line/paragraph switches direction
automatically based on its first character. Mixed-language
messages display correctly without any user intervention.

Why this matters: Hebrew and Arabic users cannot comfortably
compose or review their own messages in the input field.
This is a one-line fix (dir="auto") with no downside.

Alternative Solutions

Workaround: None available within the VSCode extension context.
VSCode webviews are sandboxed — external extensions cannot
inject CSS/JS to fix this.

The only viable fix is upstream in the Claude Code codebase.

Priority

High - Significant impact on productivity

Feature Category

Interactive mode (TUI)

Use Case Example

A user writes a message that mixes Hebrew and English:

Line 1 (starts with Hebrew): "שלום, אני רוצה לדעת..."
Line 2 (starts with English): "Can you explain how..."
Line 3 (starts with Hebrew): "תודה רבה"

Expected: Each line/paragraph aligns independently based on
its first character — Hebrew lines align RTL, English lines align LTR.

Current reality: All lines are forced LTR, making Hebrew text
appear reversed and extremely difficult to read.

Additional Context

Area: area:ide (VSCode extension input field)
Platform: Windows / macOS / Linux (affects all platforms)
Reference: HTML spec for dir="auto" —
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗