Translate texts in more than 25 languages directly in your favourite code editor powered by DeepL. This extension provides all the necessary integrations to easily translate texts without leaving your code editor.
The extension provides the following functionalities:
The following commands are available to translate texts:
Command | Keybinding | Description |
---|---|---|
DeepL: Translate | alt+t | Translates the selected text into the last used target language |
DeepL: Translate to ... | alt+shift+t | Asks for the target language and translates the selected text into the target language |
DeepL: Translate to ... from ... | alt+ctrl+shift+t | Asks for source and target language and translates the selected text from the source language into the target language |
DeepL: Translate and paste from clipboard | ctrl+shift+v | Translates the clipboard content and paste it |
DeepL: Duplicate and translate | ctrl+shift+d | Duplicates and translates the selected text |
The commands are accessible via the command pallette.
In addition, the context menu is extended and now includes the translation commands.
The currently selected target language is displayed in the status bar. By clicking the item you can change the target language.
In order to use this extension, you need a DeepL API key. To get an API key, you need to create an account here. After you have created an account, you will find your API key here. You will be asked to enter your api key, by using your first translation.
This extension contributes the following settings:
Optional settings:
deepl.formality
: Whether the translated text should lean towards formal or informal language in certain languages.deepl.splitSentences
: Sets whether the translation engine should first split the input into sentences.deepl.preserveFormatting
: Sets whether the translation engine should respect the original formatting, even if it would usually correct some aspects.deepl.tagHandling
: Sets which kind of tags should be handled. Options currently available: 'xml'.deepl.splittingTags
: Comma-separated list of XML tags which always cause splits.deepl.nonSplittingTags
: Comma-separated list of XML tags which never split sentences. deepl.ignoreTags
: Comma-separated list of XML tags that indicate text not to be translated.deepl.defaultTargetLanguage
: Specifies the default target language the text should be translated to. The default target language will be overwriten by choosing a different language using the language chooser. (See all available target languages in the offical documentation)deepl.defaultSourceLanguage
: Specifies the default source language the text should be translated to. The default source language will be overwriten by choosing a different language using the language chooser. (See all available source languages in the offical documentation)deepl.translationMode
: Whether the selected text should be replaced with the translation result or inserted into a new line below/aboveThis extension is not an official implementation of the DeepL API from DeepL itself! The author has no connection to DeepL.
The texts are translated via the online service of DeepL. Please take a look at their privacy policy.
Dont use this extension if you dont agree with their privacy policy!
deepl.configuration
to specify whether the selected text should be replaced with the translation result or inserted into a new line below/aboveAdded more settings to use more deepl api parameters
Added more settings to use more deepl api parameters
Added extension logo
Initial release of vscode-deepl