/auto-copilot1

🛠️✨ Automation Tool for GitHub Copilot 💪 that Auto Fixes code with Live Preview 🚀🤯🤩

Primary LanguagePythonMIT LicenseMIT

copilot

Auto Copilot - An Automation Tool for Github Copilot 🚀💡

Support Project:

Auto Copilot is an extraordinary 🌟🔧 automation tool that monitors your code file and automatically fixes errors. 🚀💡 and give you Real-time 📺 output of your code. 🎯🔧💻 just at your fingertips. 🤩👌

Unbelievable, right? It's like having a copilot 🚁👨‍✈️ that never sleeps! 😎🌙✨

This tool was inspired by XCode, which automatically executes your code in Playground 🎮, and Compiler Explorer, which automatically compiles your code after every change. 🎯🔧💻

Features ✨

  • File Monitoring 📂: Auto Copilot watches your file for changes and automatically fixes errors.
  • Live Preview 📺: Auto Copilot can execute your code automatically after fixing the error and show you the output live.
  • Customizable 🎛️: You can set the interval time and monitor time according to your needs.
  • Easy to Use 🚀: Just run the script with your file as an argument and let Auto Copilot handle the rest.
  • Cross Platform 🌍: Auto Copilot works on Windows, Linux, and MacOS.

Pre-requisites 📝

You need to have Python 3 installed on your system. You can download it from here.

And you need to have the following compilers installed on your system:

In order to execute your code automatically and for the live preview. Just download ones you need mostly.

Github Copilot 🔑

And you need to have Github Copilot installed on your VS Code. You can download it from here. Basically Auto Copilot uses Github Copilot Chat Inline version to fix the errors and bugs in your code.

And don't forget to set the keybindings for Github Copilot Chat in your VS Code. 🔑

Installation 💻

  1. Clone the repository:

    git clone https://github.com/haseeb-heaven/Auto-Copilot.git
  2. Navigate to the project directory:

    cd Auto-Copilot
  3. Run the script with your file as an argument:

    python auto-copilot.py filename [interval_time] [monitor_time]
    • filename: The name of the file you want to monitor.
    • interval_time (optional): The time interval in seconds for checking the file. Default is 5 seconds.
    • monitor_time (optional): The time in seconds for the auto fix error. Default is 15 seconds.
  4. Install the dependencies:

    pip install -r requirements.txt
  5. Make sure to run this throug your terminal or cmd. 🎯🔧💻 and always give permissions to your terminal or cmd to access your VS Code. 🔑

Working 🚀

So how does Auto Copilot work? 🤔

  • It actualyy uses the Github Copilot Chat to fix the errors in your code. 🎯🔧💻
  • It Reads your Github Copilot Keybindings from your VS Code. 🔑
  • It then compiles your code and executes it. 🎯🔧💻
  • Then on Error & Bugs occurences it press the Github Copilot Keybindings to fix the errors. 🔑
  • And then it compiles and executes your code again. 🎯🔧💻
  • And it keeps on doing this until there are no errors left in your code. 🎯🔧💻
  • And it also gives you the Real-time 📺 output of your code. 🎯🔧💻

Working Demo 📺

Initiating the Auto Error fix 🚀💡
copilot-error1

Auto Error fixed 🚀💡
copilot-error1

Getting the Real-time output 📺
copilot-error1

YouTube Video 📺

Auto Copilot

Contributing 🤝

Contributions, issues and feature requests are welcome! Feel free to add PRs 🚀.

Versioning 📌

  • Version 1.0.0: Initial Release

License 📜

This project is licensed under the [MIT LICENSE] - see the LICENSE file for details.

Authors 👨‍💻