This project is under active development and not production-ready yet.
A modern, intelligent code editor with integrated AI assistance powered by OpenAI's GPT models or Claude 3.5 Sonnet. (DeepSeek coming soon)
-
🤖 AI Assistant
- Code analysis and suggestions
- Direct code editing capabilities
- Natural language interaction
- Context-aware responses
-
📝 Code Editor
- Syntax highlighting
- Line numbers
- Dark theme
- Multiple file support
- Tab-based interface
-
🎨 Modern UI
- Clean, minimalist design
- Intuitive layout
- Responsive interface
- Customizable themes
- Python 3.11 or higher
- PySide6
- OpenAI API key
- Clone the repository:
git clone https://github.com/FunlightStudios/Code-Editor-with-AI.git
cd funlight-editor- Install dependencies:
pip install -r requirements.txt- Set up your OpenAI API key:
- Option 1: Set environment variable:
set OPENAI_API_KEY=your-api-key-here - Option 2: Enter it when prompted in the application
- Option 1: Set environment variable:
Run the editor:
python main.py- Code Analysis: Click "Analyze" to get insights about your code
- Suggestions: Get AI-powered suggestions for improvements
- Code Editing: Let the AI help you modify your code
- Chat Interface: Ask questions and get help in natural language
Enter: Send message to AIShift + Enter: New line in input fieldCtrl + N: New fileCtrl + O: Open fileCtrl + S: Save fileCtrl + Tab: Switch between files
funlight-editor/
├── main.py # Main application entry point
├── chatgpt_api.py # OpenAI API integration
├── gui/
│ ├── ai_assistant.py # AI Assistant implementation
│ ├── editor_window.py # Main editor window
│ └── code_editor.py # Code editor component
└── requirements.txt # Project dependencies
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for the GPT API
- Qt/PySide6 for the GUI framework
- All contributors and users of the project
For support, please open an issue in the GitHub repository or contact the maintainers.