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 ๐๐จโ
This tool was inspired by XCode, which automatically executes your code in Playground ๐ฎ, and Compiler Explorer, which automatically compiles your code after every change. ๐ฏ๐ง๐ป
- 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.
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.
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. ๐
-
Clone the repository:
git clone https://github.com/haseeb-heaven/Auto-Copilot.git
-
Navigate to the project directory:
cd Auto-Copilot
-
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.
-
Install the dependencies:
pip install -r requirements.txt
-
Make sure to run this throug your terminal or cmd. ๐ฏ๐ง๐ป and always give permissions to your terminal or cmd to access your VS Code. ๐
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. ๐ฏ๐ง๐ป
Initiating the Auto Error fix ๐๐ก
Getting the Real-time output ๐บ
Contributions, issues and feature requests are welcome! Feel free to add PRs ๐.
- Version 1.0.0: Initial Release
This project is licensed under the [MIT LICENSE] - see the LICENSE file for details.
- HeavenHM - haseeb-heaven