Copilot Yours - VSCode Extension
An AI programming assistant that supports self-hosted endpoints, triggering in-line code completions in real-time.
Features
- 🤖 Intelligent Code Completion: AI-driven code completion based on the current file content and cursor position
- ⚡ Real-time Trigger: Auto-triggers completion while editing, with manual trigger option
- 📊 Status Bar Indicator: AI working status displayed in the bottom status bar
- ⚙️ Visual Settings: Click the status bar to open the settings panel for easy configuration
- 🔧 Flexible Configuration: Supports custom API endpoints, models, and parameters
Installation & Configuration
1. Install the Extension
- Search for "Copilot Yours" in VSCode and install it
- Or install from a VSIX file
- Click the "Copilot Yours" button in the bottom status bar
- Modify custom settings in the popup settings panel
3. Enable/Disable
Toggle the "Enable AI Completion" switch in the settings panel
Usage
Auto Completion
- Edit code in any supported file
- The extension auto-triggers completion after you stop typing
- Suggestions are shown in gray at the cursor position
- Press
Tab to accept, or Esc to dismiss the suggestion
Configuration Options
Option |
Type |
Default |
Description |
copilot-yours.enabled |
boolean |
true |
Enable AI completion |
copilot-yours.baseURL |
string |
https://api.openai.com/v1 |
API base URL |
copilot-yours.apiKey |
string |
"" |
API key |
copilot-yours.model |
string |
gpt-4o |
Model to use |
copilot-yours.maxTokens |
number |
2000 |
Maximum number of tokens to generate |
Notes
- API Key Security: API keys are stored in VSCode's global configuration. Please keep them safe.
- Network Connection: A stable network connection is required to access AI services.
- Usage Cost: Each completion consumes an API call; be mindful of your usage costs.
- Privacy Protection: Your code will be sent to the AI service for processing; please be mindful of privacy concerns.
Troubleshooting
Completion Not Working
- Check if your API key is configured correctly
- Ensure your network connection is stable
- Check for errors in the VSCode Developer Console
Slow Completion
- Try using a faster model
- Reduce the maxTokens setting
- Check for network latency
| |