Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSCode Text TranslatorNew to Visual Studio Code? Get it now.
VSCode Text Translator

VSCode Text Translator

volcanic

|
34 installs
| (0) | Free
Translates selected text to a target language using Microsoft, DeepL, Youdao, or Tencent APIs.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Text Translator

简体中文

A Visual Studio Code extension that provides instant text translation using multiple translation services.

Features

  • Supports multiple translation services:

    • Microsoft Translator
    • DeepL
    • Youdao
    • Tencent Cloud
  • Two translation modes:

    • Interactive target language selection (Alt+K)
    • Quick translation to default language (Alt+D)
  • Context menu integration

  • Automatic source language detection

  • Configurable default target language

Usage

Interactive Translation

  1. Select the text you want to translate in the editor
  2. Either:
    • Press Alt+K
    • Right-click and select "Translate" from the context menu
  3. Choose your target language from the dropdown list
  4. The selected text will be replaced with the translation

Quick Translation to Default Language

  1. Select the text you want to translate
  2. Press Alt+D
  3. The text will be automatically translated to your default target language

Configuration

  1. Open VS Code Settings
  2. Search for "Text Translator"
  3. Configure the following settings:
    • Choose your preferred translation service
    • Set your default target language for quick translation (Alt+D)
    • Enter the API credentials for your chosen service

Translation Service Settings

Microsoft Translator

  • textTranslator.microsoftApiKey: Your Microsoft Translator API Key
  • textTranslator.microsoftApiRegion: Your API region (default: global)

DeepL

  • textTranslator.deepLApiKey: Your DeepL API Key

Youdao

  • textTranslator.youdaoAppKey: Your Youdao API App Key
  • textTranslator.youdaoAppSecret: Your Youdao API App Secret

Tencent Cloud

  • textTranslator.tencentSecretId: Your Tencent Cloud Secret ID
  • textTranslator.tencentSecretKey: Your Tencent Cloud Secret Key

Default Language Setting

  • textTranslator.defaultTargetLanguage: Set your preferred target language for quick translation (Alt+D)

Supported Languages

  • English (en)
  • Chinese (zh)
  • Japanese (ja)
  • Korean (ko)
  • French (fr)
  • German (de)
  • Spanish (es)
  • Italian (it)
  • Russian (ru)

Getting API Keys

Microsoft Translator

  1. Visit Azure Portal
  2. Create a Translator resource
  3. Get your API key and region from the resource overview

DeepL

  1. Visit DeepL API
  2. Sign up for an API account
  3. Get your API key from the account dashboard

Youdao

  1. Visit Youdao AI Platform
  2. Create a new application
  3. Get your App Key and App Secret

Tencent Cloud

  1. Visit Tencent Cloud Console
  2. Enable Machine Translation service
  3. Get your SecretId and SecretKey from the API key management

Error Messages

The extension provides clear error messages for common issues:

  • Missing API credentials
  • Network connection problems
  • Invalid API responses
  • Missing text selection
  • Service-specific errors

License

This extension is licensed under the MIT License.

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