Home

Awesome

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:

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

For Code Search (from Github Gist, StackOverflow)

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:

<a href="https://gasbyai.com?ref=csgithub"> <img src="https://gasbyai.com/banner.png" alt="GasbyAI - Chat with your fancy AI personal assistant - Fancy ChatGPT alternative" height="100" width="360" /> </a> <img alt="Gum Pixels" src="https://lsn.gumanalytics.com/images/XOsbYS_va/gp.png" width="33" height="10" />