This extension is a text/comment translator powered by Google Translate (or Bing Translator).
- Translates selected texts from
Source Language
toTarget Language
- Automatically detects
Source Language
andTarget Language
Automatic Target Language
is your prefer display language of VSCode- You can also change the
Target Language
in the Extension Settings
- Automatically detects
- Translates only comments when you select comments and codes
- Supports more than 30 programming languages
- See below a demo
- Displays translated result as Hover Message
- You can change the
Target Language
and re-translate, by click Target Language on header of hover message - See below a demo
- You can change the
- And supports history logging in the Output Channel
- See below a demo
- Now, you can choose your preferred translation API
- Currently,
Google
andBing
translation APIs are supported
- Currently,
To install this extension go to View->Extensions
and search for translate-it
(or Translate it
). Next click Install.
To use the extension go to the Command Palette (Cmd+Shift+P
on macOS or Ctrl+Shift+P
on Windows) and launch Translate it
command.
Recommends to use keyboard shortcut
Shift+Alt+T
.
Or select Translate it
from context menu (Right-click
on editor).
It's available when you select some text (single or multi select).
And you can remove translation highlighting, if you select Remove Translation Highlighting
from context menu (Right-click
on editor).
or Launch
Translate it: Remove Translation Highlighting
command on the Command Palette.
Recommends to use keyboard shortcut
Shift+Alt+T
.
You can find the histories of translation in the Output Channel.
Table of contributed settings (prefix "translateIt."):
Name | Default | Description |
---|---|---|
hoverDisplay | true |
Display translated result as hover message (if false , always open Output Channel instead) |
hoverDisplayHeader | true |
Display hover message with header area : "Source Language → Target Language" |
hoverMultiLineFormatting | true |
Display hover message with Multi-Line Formatting |
targetLanguage | "Automatic" |
Target language (list the supported) translate to |
api | "Google" |
Preferred translation api to used |
If you find any problems using this extension or you want to propose new features to it, feel free to open an issue on Github.
Detailed Release Notes are available here or above Changelog tab.
Icon made by Freepik from www.flaticon.com