Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Persian TerminalNew to Visual Studio Code? Get it now.
Persian Terminal

Persian Terminal

Amirhossein_Farshbaf_Rashidi

|
156 installs
| (0) | Free
Read Persian naturally in VS Code: RTL output, interactive terminal sessions, Python execution, search and export.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Persian Terminal

English · فارسی

Your commands. Persian you can read.

Run programs, answer prompts and read Persian naturally inside VS Code. Persian Terminal brings connected Persian letters, right-to-left text and English commands together in a focused panel built for text output.

Persian Terminal with display controls

Features

  • Readable Persian: connected letters, adjustable alignment and the bundled Vazirmatn font, available offline.
  • Run files from the editor: launch Python, Go, JavaScript, PHP, Ruby and Java files with a dedicated command.
  • One tab per file: keep each file’s output separate. Running the same file again reuses its tab.
  • Restart without extra steps: rerunning closes the previous session and starts fresh, even while the program is waiting for input.
  • Keep output for comparison: turn on Preserve previous output in Display to retain earlier runs in the same tab.
  • Interactive input: answer prompts from the panel and review submitted answers with compact input labels.
  • Independent shell sessions: manual commands run in a general tab, where the working directory and environment persist between commands.
  • Search, copy and save: find text in the current tab, copy a run’s output or export it to a file.
  • A display that fits your workflow: adjust text size, compact or regular spacing, and Persian alignment.
  • Access to the native terminal: switch to the underlying terminal when a program needs a full-screen interface or special keyboard input.

Get started

  1. Install Persian Terminal in VS Code. For a downloaded VSIX, use Extensions: Install from VSIX, then Developer: Reload Window.
  2. Open the Command Palette and run Persian Terminal: Open.
  3. Select an installed shell with Shell Integration enabled.
  4. Run a supported file from the editor, or enter a command in the panel.

Try a simple command:

python -c "print('Hello from Persian Terminal!')"

Use python3 if that is the Python command on your system. Language runtimes and compilers must be installed separately.

Run files from the editor

Python

Open a Python file and choose Run Python File in Persian Terminal from the editor’s run menu or context menu.

Run Python File in Persian Terminal

The extension uses persianTerminal.pythonPath when configured; otherwise it checks the Python extension’s selected interpreter, then the project’s .venv or system Python where applicable. Python files run from the workspace folder, or their own folder when no workspace is open.

JavaScript, Go and other languages

Choose Run File in Persian Terminal for Go, JavaScript, PHP, Ruby and Java files.

Run JavaScript in Persian Terminal

Run Go in Persian Terminal

Language Execution
Python Selected Python interpreter with unbuffered output
JavaScript node file.js
Go go run file.go
PHP php file.php
Ruby ruby file.rb
Java java File.java with a runtime that supports source-file execution

These actions run the selected file. For a multi-file Go package, enter go run . in the appropriate folder; use go test for test files. Other build commands and languages can be run manually when their tools are installed. The panel is designed for text output.

Tabs, reruns and output history

Each file gets a reusable tab named after it. Running another file keeps the previous file’s output in its own tab. Up to eight tabs can be open at once; close an unused tab to make room.

Rerunning a file starts a fresh session in the same tab. The old process is closed, and its environment changes are not carried over. Previous output is cleared by default.

To compare runs, open Display and enable Preserve previous output. This preference is saved and applies to subsequent runs. Switching it off does not immediately erase the current view. Output history is held in memory and has size limits; save important results to a file.

Interactive input

Answering a program prompt

While a program is running, the bottom field sends answers to that program. Enter your response and select Send or press Enter. To restart the file, use its editor run action again.

Submitted answers appear with a small input label. After execution ends, text following the last answer receives an output label. Labels follow the order of events; they do not interpret the meaning of the program’s text. Copy and export omit the display labels and separate input rows.

Everyday controls

Control Action
Display Text size, spacing, Persian alignment and output preservation
Folder Change the working directory
Search Find text in the current tab
Copy / Save beside a run Copy or export that run’s output
Clear Clear the view without closing the shell session
Stop Send an interrupt to the running program
Native terminal Open the underlying VS Code terminal
Double-click a tab name Rename the tab

Keyboard shortcuts: Enter runs a command or sends input; Shift+Enter adds a line; ↑/↓ browse history; Ctrl+F searches; Ctrl+L clears the view. Ctrl+C interrupts when no text is selected.

Setup and troubleshooting

  • Keep terminal.integrated.shellIntegration.enabled enabled. Use PowerShell 7 or Git Bash on Windows, or Bash, Zsh or PowerShell 7 on Linux/macOS.
  • If the shell cannot connect, check the setup message in the native terminal. Windows PowerShell and PowerShell 7 are different shells.
  • If a runtime is not found, install it and make it available to the shell. For Python, check Python: Select Interpreter or persianTerminal.pythonPath.
  • Use the native terminal for full-screen tools, hidden password entry and arrow-key interfaces. Advanced cursor-based output may not render fully in the Persian panel.
  • Some programs ignore Ctrl+C. Close their tab or rerun the file to replace the session.
  • In native terminal mode, standard output and errors arrive as a combined stream.

Development and feedback

npm ci
npm test
npm run package

Found an issue? Open a report with your operating system, shell and a short example that reproduces it.

Licensed under MIT.


ترمینال فارسی

فارسی را همان‌طور که باید، بخوان.

دستور اجرا کنید، به پرسش‌های برنامه پاسخ دهید و خروجی فارسی را روان بخوانید. ترمینال فارسی، حروف متصل و چینش راست‌به‌چپ را در کنار دستورهای انگلیسی، در پنلی ساده داخل VS Code در اختیار شما می‌گذارد.

محیط ترمینال فارسی و تنظیمات نمایش

امکانات

  • فارسی خوانا: نمایش حروف متصل، چینش قابل تنظیم و فونت وزیرمتن، بدون نیاز به اینترنت برای بارگذاری فونت.
  • اجرای مستقیم فایل: اجرای فایل‌های Python، Go، JavaScript، PHP، Ruby و Java از منوی ویرایشگر.
  • یک تب برای هر فایل: خروجی فایل‌ها جدا می‌ماند و اجرای دوباره، همان تب را به کار می‌گیرد.
  • شروع دوباره با یک انتخاب: با اجرای مجدد فایل، نشست قبلی بسته می‌شود و برنامه از ابتدا اجرا می‌شود؛ حتی وقتی منتظر ورودی است.
  • حفظ خروجی برای مقایسه: نگه‌داشتن نتیجه اجراهای قبلی با یک گزینه در بخش «نمایش».
  • ورودی تعاملی: ارسال پاسخ از داخل پنل و مرور پاسخ‌ها با برچسب کوچک «ورودی».
  • نشست‌های مستقل: دستورهای دستی در تب عمومی اجرا می‌شوند و مسیر و متغیرهای محیطی میان دستورها باقی می‌مانند.
  • جست‌وجو، کپی و ذخیره: پیدا کردن متن در تب جاری و دریافت خروجی هر اجرا به صورت جداگانه.
  • نمایش مطابق سلیقه شما: تنظیم اندازه متن، فاصله‌ها و چینش فارسی.
  • دسترسی به ترمینال اصلی: ادامه کار با ابزارهایی که به محیط تمام‌صفحه یا کلیدهای ویژه نیاز دارند.

شروع کار

  1. افزونه Persian Terminal را در VS Code نصب کنید. برای فایل VSIX، دستور Extensions: Install from VSIX و سپس Developer: Reload Window را اجرا کنید.
  2. پنجره فرمان‌ها را باز کنید و Persian Terminal: Open را انتخاب کنید.
  3. یک شل نصب‌شده با Shell Integration فعال انتخاب کنید.
  4. فایل خود را از منوی ویرایشگر اجرا کنید یا دستور را در کادر پایین پنل بنویسید.

برای شروع، این پیام کوتاه را امتحان کنید:

python -c "print('سلام دنیا از طریق ترمینال فارسی')"

اگر فرمان پایتون در سیستم شما python3 است، همان را جایگزین کنید. مفسر یا کامپایلر هر زبان باید جداگانه نصب شده باشد.

اجرای فایل از ویرایشگر

پایتون

فایل پایتون را باز کنید و از منوی اجرا یا کلیک راست، گزینه Run Python File in Persian Terminal را انتخاب کنید.

اجرای مستقیم فایل پایتون در ترمینال فارسی

اگر persianTerminal.pythonPath تنظیم شده باشد، همان مفسر استفاده می‌شود. در غیر این صورت، مفسر انتخاب‌شده در افزونه Python بررسی می‌شود و در شرایط مناسب، محیط .venv یا پایتون سیستم به کار می‌رود. فایل پایتون از پوشه پروژه اجرا می‌شود؛ اگر پروژه‌ای باز نباشد، پوشه خود فایل مبنای اجراست.

جاوااسکریپت، Go و زبان‌های دیگر

برای فایل‌های Go، JavaScript، PHP، Ruby و Java از گزینه Run File in Persian Terminal استفاده کنید.

اجرای فایل جاوااسکریپت از منوی ویرایشگر

اجرای فایل Go از منوی ویرایشگر

زبانروش اجرا
Pythonمفسر انتخاب‌شده با خروجی بدون بافر
JavaScriptnode file.js
Gogo run file.go
PHPphp file.php
Rubyruby file.rb
Javajava File.java با محیطی که اجرای مستقیم فایل سورس را پشتیبانی کند

این گزینه‌ها فایل انتخاب‌شده را اجرا می‌کنند. برای پروژه چندفایلی Go، دستور go run . و برای تست‌ها go test را در پوشه مناسب وارد کنید. دستورهای ساخت و زبان‌های دیگر نیز با نصب ابزار مربوط، به صورت دستی قابل اجرا هستند. پنل فارسی برای خروجی متنی طراحی شده است.

تب‌ها، اجرای دوباره و حفظ خروجی

هر فایل یک تب با نام خودش دارد. با اجرای فایل دیگر، خروجی فایل قبلی در تب خودش باقی می‌ماند. حداکثر هشت تب می‌تواند هم‌زمان باز باشد؛ برای ایجاد تب بعدی، یکی از تب‌های بدون استفاده را ببندید.

اجرای دوباره فایل، نشست تازه‌ای در همان تب ایجاد می‌کند. برنامه قبلی بسته می‌شود و تغییرات محیطی آن به نشست جدید منتقل نمی‌شود. خروجی قبلی به صورت پیش‌فرض پاک می‌شود.

برای مقایسه نتیجه‌ها، از بخش نمایش گزینه حفظ خروجی اجراهای قبلی را روشن کنید. انتخاب شما ذخیره می‌شود و از اجرای بعدی اعمال می‌شود؛ خاموش‌کردن گزینه، خروجی موجود را فوراً پاک نمی‌کند. تاریخچه در حافظه و با ظرفیت محدود نگهداری می‌شود؛ نتیجه‌های مهم را در فایل ذخیره کنید.

پاسخ‌دادن به برنامه

ارسال پاسخ به برنامه در ترمینال فارسی

هنگام اجرای برنامه، کادر پایین برای ارسال پاسخ است. پاسخ را بنویسید و ارسال یا Enter را بزنید. برای شروع دوباره فایل، گزینه اجرای آن را از منوی ویرایشگر انتخاب کنید.

پاسخ‌ها با برچسب کوچک «ورودی» نمایش داده می‌شوند. پس از پایان اجرا، متن بعد از آخرین پاسخ با برچسب «خروجی» مشخص می‌شود. این برچسب‌ها بر اساس ترتیب رویدادها هستند و معنای متن برنامه را تشخیص نمی‌دهند. کپی و ذخیره شامل برچسب‌های نمایشی و ردیف‌های جداگانه ورودی نیست.

ابزارهای روزمره

  • نمایش: اندازه متن، فاصله‌ها، چینش فارسی و حفظ خروجی.
  • پوشه: تغییر مسیر اجرای دستورها.
  • جست‌وجو: پیدا کردن متن در تب جاری.
  • کپی و ذخیره کنار اجرا: دریافت خروجی همان اجرا.
  • پاک‌کردن: پاک‌کردن نمایش بدون بستن نشست شل.
  • توقف: ارسال درخواست توقف به برنامه.
  • ترمینال اصلی: بازکردن ترمینال زیرین در VS Code.
  • دوبار کلیک روی نام تب: تغییر نام تب.

میانبرها: Enter برای اجرا یا ارسال، Shift+Enter برای خط بعد، کلیدهای بالا و پایین برای تاریخچه، Ctrl+F برای جست‌وجو و Ctrl+L برای پاک‌کردن نمایش. وقتی متنی انتخاب نشده باشد، Ctrl+C درخواست توقف می‌فرستد.

راه‌اندازی و رفع مشکل

  • گزینه terminal.integrated.shellIntegration.enabled را فعال نگه دارید. در ویندوز از PowerShell 7 یا Git Bash و در لینوکس و مک از Bash، Zsh یا PowerShell 7 استفاده کنید.
  • اگر اتصال شل برقرار نشد، پیام راهنما در ترمینال اصلی را بررسی کنید. Windows PowerShell با PowerShell 7 متفاوت است.
  • اگر ابزار زبان پیدا نشد، نصب و دسترسی آن از شل را بررسی کنید. برای پایتون، Python: Select Interpreter یا تنظیم persianTerminal.pythonPath را بررسی کنید.
  • برای برنامه‌های تمام‌صفحه، ورود رمز مخفی و رابط‌های وابسته به کلیدهای جهت، از ترمینال اصلی استفاده کنید. خروجی‌هایی که مکان نشانگر را به شکل پیشرفته تغییر می‌دهند، ممکن است در پنل فارسی کامل نمایش داده نشوند.
  • بعضی برنامه‌ها درخواست توقف را نادیده می‌گیرند. بستن تب یا اجرای دوباره فایل، نشست آن‌ها را می‌بندد.
  • در حالت ترمینال اصلی، خروجی عادی و خطا در یک جریان دریافت می‌شوند.

توسعه و بازخورد

npm ci
npm test
npm run package

برای گزارش مشکل، نام سیستم‌عامل، شل و نمونه کوتاهی از کدی که مشکل را نشان می‌دهد ارسال کنید.

این پروژه با مجوز MIT ارائه می‌شود.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft