Run RTL — اجرای راستبهچین
Run Python and JavaScript from VS Code with clean UTF‑8 output and correct Persian/Arabic RTL rendering — made for teaching and learning.
اجرای Python و JavaScript با خروجی تمیز UTF‑8 و نمایش درست فارسی، مناسب آموزش.
Features · امکانات
- ▶ One compact button in the editor title (Python/JS files) ·
Ctrl+Alt+R (Cmd+Alt+R on Mac)
- Live
input() with echo, history (↑/↓), EOF button, Stop and Re-run
- Errors in red; click a traceback line to jump to the file and line
- Per-line direction (
dir=auto), bundled Vazirmatn font, optional Persian digits (display only)
- ANSI colours and
\r progress lines
- Step Trace (Python): run once, then replay step by step — current line highlighted in the editor with inline variable changes, variable table, step list, play/speed
- Run Selection, unsaved/untitled files, Explorer right-click run
- Themes: dark, light, classroom (high contrast), follow-VS-Code · Presentation mode with large fonts
- Copy or save output as
.txt / .html
- Uses the interpreter chosen in the Python extension (or
rtlRun.pythonPath)
Commands
Run RTL, Run RTL: Run Selection, Run RTL: Step Trace (Python), Stop, Run Again, Clear Output, Switch Theme, Toggle Presentation Mode, Toggle Persian Digits, Increase/Decrease Font Size, Open Settings.
Settings
All settings start with rtlRun. — language (fa/en), theme, presentationMode, fontFamily, fontSize, presentationFontSize, persianDigits, clearOnRun, saveBeforeRun, focusInputOnRun, pythonPath, nodePath, args, env, cwd, timeoutSeconds, traceMaxSteps, statusBar.
Notes
- Running code is disabled in untrusted workspaces.
- Step Trace records up to
rtlRun.traceMaxSteps steps (default 3000); the program keeps running normally after that.
© Dariush Alipour (داریوش علیپور) — Tirotir (تیروتیر) · MIT License