Coder Social home page Coder Social logo

haseeb-heaven / auto-copilot Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 3.0 8.24 MB

๐Ÿ› ๏ธโœจ Automation Tool for GitHub Copilot ๐Ÿ’ช that Auto Fixes code with Live Preview ๐Ÿš€๐Ÿคฏ๐Ÿคฉ

License: MIT License

Python 100.00%
api api-rest bingchat chatgpt coding copilot cpp17 csharp developer-tools github github-api github-copilot gpt gpt3 java javascript programming python

auto-copilot's Introduction

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 ๐Ÿ‘จโ€๐Ÿ’ป

auto-copilot's People

Contributors

haseeb-heaven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.