A lightweight extension that translates and optimizes prompts into clear, well-structured English instructions for AI assistants. Works with VS Code (GitHub Copilot) and Cursor IDE (Cursor AI).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A lightweight extension that translates and optimizes prompts from any language into clear, well-structured English instructions for AI assistants. Works seamlessly with both VS Code (GitHub Copilot) and Cursor IDE (Cursor AI).
Features
🌍 Multi-language Support: Translate prompts from any language to optimized English
Open the extension panel by clicking the "Chat With AI" icon in the Activity Bar
Click the ⚙️ Settings icon in the panel title bar
Enter your OpenAI API Key in the settings
Usage
Open the Panel: Click the "Chat With AI" icon in the Activity Bar
Enter Your Prompt: Type your prompt in any language
Send: Press Enter or click "Translate & Optimize"
Result: The optimized English prompt is automatically:
Displayed in the output area
Copied to your clipboard
Sent to your AI assistant:
VS Code: GitHub Copilot Chat (if installed)
Cursor IDE: Cursor AI Composer/Chat
Keyboard Shortcuts
Enter: Send prompt for translation
Shift + Enter: New line in input area
◀ / ▶: Navigate through prompt history
History Navigation
The extension remembers your last 10 prompts. Use the Previous (◀) and Next (▶) buttons to browse through them.
Extension Settings
This extension contributes the following settings:
optimal-english-prompt.apiKey: Your OpenAI API Key for translation and optimization
optimal-english-prompt.systemPrompt: Custom system prompt to control how prompts are optimized (default includes instructions for code generation tasks)
optimal-english-prompt.copilotIntegration: Enable/disable automatic sending to GitHub Copilot Chat (default: enabled)
Requirements
VS Code version 1.106.0 or higher, or Cursor IDE
OpenAI API key
Internet connection for API calls
Optional AI Integration:
VS Code: GitHub Copilot extension
Cursor IDE: Built-in Cursor AI (no additional setup needed)
Tips
Use the custom System Prompt setting to tailor optimization for specific use cases
The extension works best with clear, specific prompts
Drag the "Chat With AI" panel to your preferred location (sidebar, secondary sidebar, or bottom panel)
Known Issues
The extension requires an active internet connection to communicate with OpenAI's API
API calls may take a few seconds depending on prompt complexity and network speed
Support
If you encounter any issues or have suggestions, please file an issue on our GitHub repository.
Changelog
See CHANGELOG.md for release notes and version history.