AI Code Completion
AI-powered code completion for VS Code.
Features
- Command Generation: Press
⌘K (or Ctrl+K on Windows/Linux) to generate code based on your selection or cursor position.
- Code Suggestions: Get intelligent code suggestions as you type.
Requirements
- VS Code 1.60.0 or higher
- An active API endpoint for the AI service (default: http://localhost:5000)
Extension Settings
This extension contributes the following settings:
aiCodeCompletion.enabled : Enable/disable AI code completion
aiCodeCompletion.apiEndpoint : API endpoint for AI code completion service
Known Issues
- The extension requires a running backend service at the configured API endpoint.
Release Notes
0.0.1
Initial release of AI Code Completion.
How to Use
- Install the extension
- Make sure your AI backend service is running
- Open a code file
- Press
⌘K to generate code
- Use the command palette and search for "AI Code Completion" to see all available commands
API Requirements
The backend API should implement these endpoints:
POST /generate : Accepts prompt and context in the request body, returns a completion in the response.
POST /suggest : Accepts line , position , and context in the request body, returns a list of suggestions in the response.
License
This extension is licensed under the MIT License.
| |