VSCode Reborn AI is a Visual Studio Code extension that allows you to use the ChatGPT API to write, refactor, and improve your code.
Search for "VSCode Reborn AI" in the VSCode extension search.
Or install directly:
Or build this extension yourself (scroll further down).
Any tool that is "compatible" with the OpenAI API should work with this extension. The tools listed below are the ones I've personally tested.
I've set up a proxy for anyone that needs it at https://openai-proxy.dev/v1
. It's running x-dr/chatgptProxyAPI code on CloudFlare Workers. This is mainly for anyone who wants to use OpenAI, but cannot due to api.openai.com being blocked.
Most of this extension has been translated to a ~dozen languages, but the translations are not complete and may not be correct in some places. If you'd like to help with translations, please see the i18n discussion
To set up the project, first clone the repository:
git clone https://github.com/christopher-hayes/vscode-chatgpt-reborn.git
Next, change into the project directory and install the dependencies using Yarn:
cd vscode-chatgpt-reborn
yarn install
You can run the following scripts using Yarn:
yarn run build
yarn run watch
To test the vscode-chatgpt-reborn extension in Visual Studio Code, follow these steps:
-
Open the project directory in Visual Studio Code.
-
Press
F5
or clickRun > Start Debugging
in the menu to start a new Extension Development Host instance with the extension loaded. -
In the Extension Development Host instance, test the extension's functionality.
-
Use the Debug Console in the main Visual Studio Code window to view any output or errors.
-
To make changes to the extension, update the code, and then press
Ctrl + Shift + F5
/Cmd + Shift + F5
(or clickRun > Restart Debugging
) to reload the extension. -
Once you are satisfied with your changes, submit a pull request to this repository.
See the CHANGELOG for a list of changes.
Yarn - TypeScript - VSCode Extension API - React - Redux - React Router - Tailwind CSS
- The UI is built with TailwindCSS. But, respecting VSCode's UI consistency and theme support is still a priority.
- This does not use VSCode's WebView UI Toolkit. But, I'm open to switching to the WebView UI toolkit since it better aligns with VSCode's UI.
This project is licensed under the ISC License - see the LICENSE file for details.