GithubHelp home page GithubHelp logo

zhuangchengwang / copilot-clone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hieunc229/copilot-clone

0.0 0.0 0.0 29.56 MB

VSCode extension for code suggestion

License: MIT License

JavaScript 34.77% TypeScript 65.23%

copilot-clone's Introduction

Captain Stack

Captain Stack — Code generator and suggestion for VSCode

Captain Stack on Marketplace Captain Stack on Marketplace

This feature is somewhat similar to Github Copilot's code suggestion. But instead of using AI, it sends your search query to Google, then retrieves StackOverflow and Github Gist answers and autocompletes them for you.

✅ OpenAI and OpenRouter added to generate code with AI (Bring Your Own Key)

Demo Video

1. Usage

Captain Stack provides Code Search (from Github Gist, StackOverflow), and AI Code Generation (with OpenAI and OpenRouter). With multiple options can be enabled at the same time.

To generate/search code, use // find {what you need}.. For example:

// find binary search in JavaScript.

// generate binary search function in Python.

Note:

  • Make sure there is a dot at the end of {what you need} search phrase
  • You can use either // find or // generate to trigger Captain Stack code completion. Both are the same.

2. Settings

To configure setting options for Captain Stack, open the settings page by using hotkey Meta + ,, or:

  1. Click on the Cog icon in the bottom left
  2. Choose Settings
  3. In the Search settings search box, enter "Captain Stack"

Settings options

Tick the checkbox of the following provider to enable

  • Github Gist
  • Stackoverflow
  • Open AI
  • Open Router

For Code Search (from Github Gist, StackOverflow)

  • Max results: the max number of search results return

For Code Generator

Please note when using OpenRouter, X-Title and HTTP-Referer will be set as GasbyAI

3. Contributors

The plugin is available, thanks to:

Feel free to open a thread for feedback or discussion. And have fun!


Love Captain Stack? Check out other things I do:

GasbyAI - Chat with your fancy AI personal assistant - Fancy ChatGPT alternative

Gum Pixels

copilot-clone's People

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.