Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Vscode Google Translate by ntdotjsxNew to Visual Studio Code? Get it now.
Vscode Google Translate by ntdotjsx

Vscode Google Translate by ntdotjsx

ntdotjsx

|
1 install
| (1) | Free
Translate text right in your code with cloud translation api
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Vscode Cloud Google Translate

Translate text instantly inside your code editor.

A lightweight Visual Studio Code extension that allows you to translate text without leaving your workflow.


API Configuration

This extension uses a secure method to store your API key. The key is not exposed in the standard settings UI and is stored using VS Code secure storage.

Set API Key

  1. Open Command Palette:

    Ctrl + Shift + P
    
  2. Run:

    Translate: Api Key
    

        Command Palette

  1. Enter your Google Cloud Translation API key

        Enter API Key

  1. The key will be stored securely and used for subsequent requests

        Success


Features

  • Translate selected text
  • Translate entire lines under the cursor
  • Set a preferred target language
  • Keyboard shortcut support (Alt + Shift + T)
  • Secure API key input via Command Palette
  • Supports 100+ languages

Usage

Translate Selected Text

  1. Select any text
  2. Press Alt + Shift + T
  3. Choose a target language
  4. The translated result will be displayed

Translate Line Under Cursor

  1. Place the cursor on a line

  2. Run the command:

    Translate line(s) under the cursor
    
  3. The translation will be inserted below the current line


Preferred Language

To speed up your workflow, you can define a default target language:

  • Run: Set preferred target language
  • Or configure it in VS Code settings

Extension Settings

Setting Description
vscodeGoogleTranslate.preferredLanguage Default target language

API Limits and Pricing

This extension uses Google Cloud Translation API. Usage is subject to Google Cloud quotas and pricing.

Free Tier

  • Up to 500,000 characters per month (free)
  • This free tier resets every month and does not expire (Google Cloud)

Pricing

  • Standard translation (Basic / NMT): $20 per 1,000,000 characters (CostGoat)

  • Pricing is calculated based on the number of characters (including spaces)


Request Limits

  • Recommended request size: ~5,000 characters per request
  • Maximum per request (Advanced): up to 30,000 characters (Google Cloud Documentation)

Quotas

  • No strict daily character limit by default (can be configured) (Google Cloud Documentation)
  • Rate limits (requests per minute) apply per project

Notes

  • All characters count toward usage (including spaces and line breaks) (Google Cloud Documentation)
  • You are responsible for any costs incurred using your API key
  • Usage beyond the free tier will be billed automatically


Support

If you find this extension useful, consider rating it on the Marketplace and sharing it with others.

Heavy usage (e.g. translating large files repeatedly) can quickly consume your quota.

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