A VS Code extension that translates non-English code comments into English inline, directly in your editor, using a locally-running Ollama LLM. No data leaves your machine.
Features
Translates single-line and inline comments from any language into English
Displays translations as inline decorations next to the original comment — similar to GitLens blame annotations
Skips code lines and English comments automatically — only foreign language comments are shown
Supports all common comment styles (//, #, --, %, ;)
Requirements
Ollama installed and running with at least one model pulled (e.g. ollama pull gpt-oss:20b)
VS Code 1.85.0 or later
Installation
Until VSTranslate is available on the VS Code Marketplace, you can install it manually from a .vsix file: