← 开源
hieunc229

copilot-clone

VSCode extension for code suggestion

ApplicationsCodingTypeScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.78k
Star
267
Fork
+0
本周
4
贡献者
创建于 2021-06-30 · 更新于 2026-10-05 · 今日第 9231 名
主要开发者
hieunc229Kek5chenkwokhou
README

Captain Stack — Code generator and suggestion for VSCode

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)

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:

排名相邻
同类项目