Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>DualTran — Translate in PlaceNew to Visual Studio Code? Get it now.
DualTran — Translate in Place

DualTran — Translate in Place

Seigwen Lee

|
1 install
| (0) | Free
Translate the selection and keep it next to the code: inline ghost line or side-by-side panel. Google or your own AI model (BYOK).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DualTran for VS Code

Translate the selection without leaving the editor. The translation appears inline at the end of the line (press Esc to clear it), or side by side in a panel.

  • Google — no account, no key.
  • AI (BYOK) — any OpenAI-compatible endpoint: OpenAI, Azure OpenAI, OpenRouter, DeepSeek, Groq, Together, Ollama, LM Studio, …
  • The API key lives in VS Code SecretStorage (the OS keychain), never in settings.json.

Commands

Command Shortcut What it does
DualTran: Translate Selection (inline) Ctrl+Alt+T / Cmd+Alt+T Ghost line under the selection (or the current line)
DualTran: Translate Selection (side panel) — Source and translation side by side
DualTran: Translate and Replace Selection — Overwrite the selection with the translation
DualTran: Clear Inline Translations Esc Remove ghost lines
DualTran: Pick Target Language — Quick pick, saved to settings
DualTran: Set AI API Key — Stored in the OS keychain

Settings

{
  "dualtran.engine": "google",          // or "ai"
  "dualtran.sourceLanguage": "auto",
  "dualtran.targetLanguage": "zh-CN",
  "dualtran.ai.endpoint": "https://api.openai.com/v1",
  "dualtran.ai.model": "gpt-4o-mini"
}

For a local model with Ollama: endpoint http://127.0.0.1:11434/v1, model qwen2.5-coder:7b, any non-empty key.

Install

Download the .vsix from Releases and run:

code --install-extension dualtran-0.1.0.vsix

Privacy

The extension collects nothing. Text is sent only to the engine you choose (Google, or your own endpoint). No DualTran server is involved.

License

MIT.

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