Access the extension by clicking the AI Code Migration icon in the activity bar or using the command palette (Ctrl+Shift+P or Cmd+Shift+P) and typing "AI Code Migration"
Select source and target languages/frameworks
Choose migration scope (file, folder, or project)
Review and approve the migration plan
Monitor the migration progress and review the results
Requirements
VS Code 1.60.0 or higher
An OpenRouter API key (can be configured in the extension settings)
Extension Settings
This extension contributes the following settings:
aiCodeMigration.apiKey: Your OpenRouter API key
aiCodeMigration.model: The AI model to use for code migration (default: "gpt-4")
aiCodeMigration.maxTokens: Maximum tokens to use per API request
aiCodeMigration.temperature: Controls AI creativity level (0.0-1.0)
Known Issues
Migration of very large codebases may require breaking the task into smaller chunks
Some specialized libraries or frameworks might need manual adjustments after migration
Roadmap
Add support for more languages and frameworks
Implement batch migration for large projects
Add custom transformation rules
Improve detection of complex patterns
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (git checkout -b feature/amazing-feature)
Commit your changes (git commit -m 'Add some amazing feature')
Push to the branch (git push origin feature/amazing-feature)
Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.