Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>RightFlow - Universal RTL and Arabic Engine for AI IDEsNew to Visual Studio Code? Get it now.
RightFlow - Universal RTL and Arabic Engine for AI IDEs

RightFlow - Universal RTL and Arabic Engine for AI IDEs

Islam Fathy

|
14 installs
| (0) | Free
Universal Arabic, Hebrew and Persian RTL and BiDi engine for AI Coding IDEs and Agents: Antigravity IDE, Cursor, VS Code Copilot, Windsurf, Chat, Prompt Input, Plan files, Work/Tasks, Markdown, and Monaco Editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
RightFlow Logo

RightFlow

**Universal BiDi and RTL Engine for AI Coding IDEs and Agents** *High-performance right-to-left alignment for Antigravity IDE, Cursor, GitHub Copilot, Windsurf, Plans, and Monaco Editor.*

Version CI VS Code Marketplace Open VSX Open VSX Downloads Installs Rating License Universal Agents Antigravity IDE BiDi


RightFlow Demo Showcase

Supported IDEs and AI Agents

RightFlow is engineered as a Universal RTL Suite across modern AI code editors:

IDE / Environment AI Agent and Panels Supported Injection Mechanism
Antigravity IDE Agent Side Panel, Plans (*.plan.md), Artifacts, Work Native Workbench and DOM Hook
Cursor IDE AI Chat, Composer, Inline Chat, Agent Prompts Native Workbench and Lexical Hook
VS Code GitHub Copilot Chat, Interactive Sessions, Chat Widgets Native Workbench and Monaco Hook
Windsurf Cascade Chat, Agent Messages, Cascade Input Native Workbench and Cascade Hook
Universal Webviews Cline, Roo Code, Continue, Claude Dev, Aider Markdown Preview Engine

Overview

When working with Arabic, Hebrew, or Persian in AI-assisted development environments, standard LTR interfaces frequently break: punctuation flips to the opposite side, mixed code phrases scramble sentence flow, and AI planning documents become tedious to read.

RightFlow is a lightweight, non-destructive BiDi (Bidirectional) engine built specifically for Antigravity IDE. It introduces seamless paragraph-level RTL detection across agent conversations, prompt inputs, planning artifacts (*.plan.md), markdown files, and the code editor — all while preserving strict LTR alignment for code blocks and maintaining 60fps editor scrolling.


Comparison: Why RightFlow?

RightFlow Before vs After Comparison
Feature Default IDE / Legacy Tools RightFlow
Agent Chat and Thoughts LTR only or broken inline code Native BiDi — Arabic flows RTL, English/code stays LTR
Prompt Input Textarea Punctuation floats on the left Dynamic auto-direction as you type
Plan Files (*.plan.md) Unformatted LTR reading First-class RTL in both preview and editor
Markdown Previews (.md) Left-aligned by default Auto-detected blocks with interactive toolbar
Code Editor (Monaco) Uncontrolled flipping or lags Strict manual toggle only (Ctrl+Alt+R)
Editor Scrolling Performance Line jumping and DOM thrashing Zero latency — pure CSS-scoped rules (60fps)
Mixed Code Strings Scrambled syntax (function()) Isolated via unicode-bidi: isolate
Typography Default browser fallback Tailored Arabic font stack (Segoe UI, Tahoma)

Key Features

1. Smart Agent Chat and Thought Trace BiDi

  • Automatically analyzes paragraphs in agent messages, user prompts, thinking blocks, and tool executions.
  • Arabic sentences align neatly to the right with correct punctuation, while English responses and technical terms remain LTR.

2. Live Prompt Input Alignment

  • Typing your first Arabic character dynamically aligns the chat prompt input to RTL.
  • Switch back to English, and the textarea gracefully returns to LTR without manual intervention.

3. Native Support for Plan Artifacts (*.plan.md)

  • Antigravity's architectural plans, tasks lists (- [ ]), and progress checklists render with proper right-aligned layout and reversed bullet hierarchies.

4. Zero-Lag Monaco Code Editor Toggle

  • Never auto-activates unexpectedly on source code. Code files remain standard LTR.
  • When working on Arabic documentation, translation strings, or markdown notes, toggle RTL instantly using the editor title button or keyboard shortcut.
  • Virtualized lines recycle without layout shift, horizontal jitter, or scroll stutter.

5. Strict Code and Syntax Isolation

  • Inline code tags (`const value = 42;`), paths, and shell commands embedded inside Arabic sentences are strictly isolated via unicode-bidi: isolate.
  • Code blocks (```js) always stay left-to-right with intact syntax indentation.

Keyboard Shortcuts

Command Windows / Linux macOS Description
Toggle Editor RTL Ctrl + Alt + R (or Alt + R) Cmd + Alt + R (or Option + R) Toggles text direction for the active file
Open Control Center Ctrl + Alt + Shift + R Cmd + Alt + Shift + R Opens quick access diagnostics and settings menu

Note: The editor shortcut works seamlessly on both English (KeyR) and Arabic keyboard layouts (ق).


Quick Start

  1. Install: Ensure the extension is enabled in your Antigravity IDE extensions list.
  2. Reload: Press Ctrl+Shift+P (or F1), run Developer: Reload Window.
  3. Usage:
    • Chat and Plans: RTL applies automatically to Arabic text.
    • Code Editor: Click the RTL icon in the editor toolbar (top right) or press Ctrl + Alt + R whenever you wish to view/edit a file in RTL mode.

Extension Settings

Customize RightFlow via settings.json:

{
  "rightflow.autoDetect": true,
  "rightflow.supportPromptInput": true,
  "rightflow.enhanceFonts": true,
  "rightflow.lineHeightRatio": 1.75,
  "rightflow.editorRtlMode": false
}
Setting Type Default Description
rightflow.autoDetect boolean true Automatically detect Arabic paragraphs in Chat and Plans.
rightflow.supportPromptInput boolean true Align chat input textarea based on the typed language.
rightflow.enhanceFonts boolean true Apply high-readability Arabic typography stack.
rightflow.lineHeightRatio number 1.75 Proportional line-height to avoid diacritic clipping.
rightflow.editorRtlMode boolean false Manual toggle state for editor RTL mode.

🌟 نبذة باللغة العربية (Arabic Overview)

تعد إضافة RightFlow المحرك الأقوى والأشمل لدعم اللغة العربية وتوجيه النصوص من اليمين إلى اليسار (RTL) داخل بيئات التطوير الذكية المدعومة بالذكاء الاصطناعي مثل Antigravity IDE و Cursor و VS Code و Windsurf.

المميزات الأساسية:

  • دعم محادثات الذكاء الاصطناعي (AI Chat & Agent): توجيه تلقائي وسلس لرسائل وتفكير الوكلاء البرمجيين لتظهر باللغة العربية بشكل طبيعي ومريح للقراءة.
  • توجيه حقول الإدخال المباشر (Prompt Input): ينعكس اتجاه حقل الكتابة تلقائياً فور كتابة أول حرف عربي ويعود للإنجليزية بسلاسة.
  • ملفات التخطيط والمهام (*.plan.md): تنسيق كامل من اليمين لليسار مع عكس اتجاه القوائم النقطية ومربعات الاختيار (- [ ]).
  • محرر الأكواد (Monaco Editor):
    • حماية الأكواد البرمجية: كتل الأكواد واللغات البرمجية تظل دائماً من اليسار إلى اليمين (LTR) دون أي تشويش على التنسيق أو المسافات.
    • التبديل اليدوي السريع: تفعيل/إلغاء وضع RTL في أي ملف بنقرة واحدة أو باختصار لوحة المفاتيح Ctrl + Alt + R (أو Alt + R).
    • أداء فائق وسلس (60fps): اعتماد كامل على قواعد CSS المعزولة دون أي بطء أو تقطيع أثناء التمرير.

الأسئلة الشائعة وحل المشكلات (FAQ)

لماذا لا ينعكس اتجاه كود البرمجة تلقائياً؟

ملفات الأكواد البرمجية (مثل JavaScript أو Python أو C++) صُممت لتقرأ من اليسار لليمين (LTR) حفاظاً على دقة بناء الجملة والمسافات البادئة. إذا كنت تكتب ملف توثيق أو تعليقات عربية وترغب في تفعيل الـ RTL له، يمكنك استخدام الاختصار Ctrl+Alt+R.

هل تؤثر الإضافة على سرعة المحرر؟

لا إطلاقاً، تعمل الإضافة بالكامل عبر طبقة تنسيق CSS خفيفة ومحسنة، دون استهلاك لمعالج الجهاز أو ذاكرة الرام.

كيف يمكنني فتح قائمة الإعدادات السريعة؟

اضغط على الاختصار Ctrl + Alt + Shift + R لفتح لوحة التحكم واختبار حالة تفعيل الإضافة وتخصيص الخيارات (Developer: Reload Window).


Author and Credits

  • Developer: Islam Fathy (@isl2m)
  • Publisher ID: isl2m
  • License: MIT License
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft