Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>RTL LensNew to Visual Studio Code? Get it now.
RTL Lens

RTL Lens

wishgoods

|
2 installs
| (0) | Free
Read Hebrew, Arabic, and mixed RTL/LTR text in a direction-aware VS Code WebView.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RTL Lens

RTL Lens is a Visual Studio Code extension for reading Hebrew, Arabic, and mixed RTL/LTR text without changing Copilot, chat extensions, terminals, or other providers.

The extension adds an independent display layer: select text in the active editor and run RTL Lens: Open Selection. The selected text opens in a WebView panel with direction-aware rendering, right-aligned RTL text, LTR code blocks, and font size controls.

Features

  • Opens selected editor text in a dedicated WebView panel.
  • Adds an RTL Lens Activity Bar view with a magnifying-glass icon.
  • Opens copied text from Copilot Chat, Cline, Output, and other protected WebViews through the clipboard.
  • Can watch the clipboard after explicit opt-in, so copied chat text opens automatically.
  • Attempts to capture selected terminal text through VS Code's terminal copy command.
  • Shows a $(search) RTL Lens status bar action for opening copied text.
  • Detects Hebrew-heavy text and defaults the view to RTL.
  • Preserves LTR layout for fenced code blocks and likely code lines.
  • Supports mixed Hebrew/English content with unicode-bidi: plaintext.
  • Includes font size increase/decrease controls.
  • Provides an optional keyboard shortcut:
    • Windows/Linux: Ctrl+Alt+R
    • macOS: Cmd+Alt+R

Commands

Command Command ID
RTL Lens: Open Selection rtlLens.openSelection
RTL Lens: Open Clipboard rtlLens.openClipboard
RTL Lens: Open Terminal Selection rtlLens.openTerminalSelection
RTL Lens: Toggle Clipboard Watch rtlLens.toggleClipboardWatch

Using RTL Lens With Chat, Cline, Copilot, Output, And Terminal

VS Code does not allow one extension to read selected text directly from another extension's WebView. That means Copilot Chat, Cline, Claude-style chat panels, and similar surfaces cannot be captured through the editor selection API.

Use Clipboard Watch for the quickest flow:

  1. Run RTL Lens: Toggle Clipboard Watch once, or press Ctrl+Alt+Shift+W / Cmd+Alt+Shift+W.
  2. Select text in Copilot Chat, Cline, Output, Terminal, or any other panel.
  3. Copy it with Ctrl+C / Cmd+C.
  4. RTL Lens opens the copied text automatically.

You can also use the manual clipboard flow:

  1. Select text in Copilot Chat, Cline, Output, or any other panel.
  2. Copy it with Ctrl+C / Cmd+C.
  3. Run RTL Lens: Open Clipboard from the Command Palette, the RTL Lens Activity Bar view, or the status bar.

For the integrated terminal:

  1. Select text in the terminal.
  2. Run RTL Lens: Open Terminal Selection.
  3. If your terminal shell or platform does not expose the selection to VS Code, copy manually and run RTL Lens: Open Clipboard.

Development

Install dependencies:

npm install

Compile the extension:

npm run compile

Watch TypeScript during development:

npm run watch

Run locally:

  1. Open this folder in VS Code.
  2. Press F5 to launch the Extension Development Host.
  3. Select mixed Hebrew/English/code text in an editor.
  4. Run RTL Lens: Open Selection from the Command Palette.

To test with Copilot Chat, Cline, Output, or similar panels, copy text from the panel and run RTL Lens: Open Clipboard.

Package for the VS Code Marketplace:

npm run package

Publish after configuring a Marketplace publisher and token:

npm run publish

Architecture

RTL Lens is intentionally provider-agnostic. The current command reads from the active text editor selection, while the rendering function accepts plain text and can later be reused by commands that receive text from Copilot Chat, Cline, Claude, Terminal, Output, or clipboard-based flows when VS Code exposes or permits those sources.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft