Translation plugin supporting Tencent Cloud, Baidu, and Youdao translation APIs. This extension helps developers translate text directly within VS Code.
Now supports VS Code 1.107.0 and later, macOS, Linux, and Windows.
Features
Context menu translation: Right-click on selected text and choose "tlcsdm" → "Translate" to translate.
Keyboard shortcut: Press Ctrl+Alt+T (Windows/Linux) or Cmd+Alt+T (macOS) with selected text to translate.
Translation View: Dedicated panel for translation with source and target language selection.
Status bar engine switch: Click the translation engine indicator in the status bar to switch between providers.
Multiple providers: Support for Tencent Cloud, Baidu, and Youdao translation services.
Configurable settings: Customize default engine, source/target languages, and API credentials.
Usage
Manual Translation (Context Menu)
Select the text you want to translate
Right-click to open context menu
Select "tlcsdm" → "Translate"
Keyboard Shortcut
Select the text you want to translate
Press Ctrl+Alt+T (Windows/Linux) or Cmd+Alt+T (macOS)
Translation View
Click the Translation icon in the Activity Bar
Enter text in the source text area
Select source and target languages
Click "Translate" or enable auto-translation
Switch Translation Engine
Click on the engine name in the status bar (bottom right)
Or use Command Palette: "Translation: Switch Engine"
Configuration
Open VS Code Settings and search for "Translation" to configure: