- A powerful, real-time AI-driven code assistant designed to enhance your coding experience.
-
🔧 Inline Code Correction
-
Automatically detects syntax and logical errors in your code.
-
Provides suggestions or applies corrections directly in VS Code.
-
📊 Real-Time Code Analysis
-
Analyzes code for syntax, logic, and performance issues as you type.
-
Highlights problematic areas with actionable insights.
###💡 Code Explanation and Optimization
-
Explains why a piece of code might fail and offers alternatives.
-
Recommends improvements for better performance and readability.
-
Currently supports:
-
JavaScript
-
Python
-
Modular design allows for easy addition of other languages.
-
Ensure you have the following installed:
-
Visual Studio Code (latest version recommended)
-
Node.js (v14 or higher)
-
Python (v3.7 or higher)
-
Flask (for the AI backend)
-
You also need an OpenAI API Key to enable AI functionality.
-
- Clone the Repository
git clone https://github.com/Kenneth12222/SyntaxSage.git
cd StntaxSage
-
- Install Dependencies
-
For the VS Code Extension:
cd vscode-extension
npm install
- For the Backend:
cd backend
pip install -r requirements.txt
-
- Set Up Environment Variables Create a .env file in the backend directory:
OPENAI_API_KEY=your-openai-api-key
-
- Start the Backend Server
cd backend
python app.py
-
- Start the VS Code Extension
cd vscode-extension
npm run start
-
- Test the Extension in VS Code
-
- Code Analysis
-
The extension sends your code to the backend AI for analysis.
-
- AI-Powered Suggestions
-
The backend returns suggestions or corrections, which appear inline in your editor.
-
- Interactive Corrections
-
Choose to apply corrections manually or let the assistant auto-correct common errors.
-
- Write your code in VS Code as usual.
-
- Look for:
-
Highlights: Errors or areas of improvement.
-
Hover Messages: Explanations and suggestions from the AI.
-
- Accept or reject suggestions with a single click.
- We welcome contributions!
-
- Fork the Repository
git fork https://github.com/your-username/interactive-code-assistant.git
-
- Create a New Branch
git checkout -b feature-name
-
- Commit Your Changes
git commit -m "Add feature-name"
-
- Push to Your Branch
git push origin feature-name
-
- Open a Pull Request
-
Current Development
-
Adding support for TypeScript and Java.
-
Optimizing performance for large codebases.
-
Refactoring suggestions.
-
Test case generation.
-
CI/CD pipeline integration.
-
If you encounter any issues or have suggestions:
-
Check the Issues page.
-
Or open a new issue directly.
- This project is licensed under the MIT License. See the LICENSE file for details.
-
Built using the VS Code API.
-
AI-powered analysis by OpenAI.