VS Code Integration
Integrate InitRepo with Visual Studio Code to provide intelligent documentation and AI assistance directly in your development environment.Features
- Context-Aware Documentation: Access project documentation from VS Code
- AI Code Completions: Enhanced suggestions based on your project structure
- Documentation Generation: Generate docs directly from your codebase
- Code Analysis: Real-time analysis and recommendations
Setup
1
Install Extension
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for “InitRepo”
- Click Install
2
Configure API Key
Add your InitRepo API key to VS Code settings:
3
Connect Project
Link your VS Code workspace to an InitRepo project:
- Open Command Palette (Ctrl+Shift+P)
- Run “InitRepo: Connect Project”
- Select your project from the list
Features
Smart Documentation
Access context-aware documentation while coding:Code Analysis
Get real-time code analysis and suggestions:Documentation Generation
Generate documentation from your code:Extension Commands
| Command | Description |
|---|---|
InitRepo: Analyze File | Analyze current file for improvements |
InitRepo: Generate Docs | Generate documentation for project |
InitRepo: Show Context | Display project context and documentation |
InitRepo: Code Review | Get AI-powered code review |
Configuration Options
Troubleshooting
Common Issues
Extension not loading
Extension not loading
- Restart VS Code
- Check VS Code version (minimum v1.70.0)
- Reinstall the extension
API connection failed
API connection failed
- Verify API key is correct
- Check internet connection
- Ensure InitRepo service is accessible
Documentation not generating
Documentation not generating
- Confirm project is connected
- Check file permissions
- Verify project structure is supported