Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/barnesoir/chatgpt-vscode-plugin

A VS code plugin for ChatGPT built by ChatGPT
https://github.com/barnesoir/chatgpt-vscode-plugin

Last synced: about 1 hour ago
JSON representation

A VS code plugin for ChatGPT built by ChatGPT

Awesome Lists containing this project

README

        

# ChatGPT VSCode Extension

This is a Visual Studio Code extension for ChatGPT that was built using only ChatGPT and 5 beers.
The `README.md` file for this extension was generated by ChatGPT.

## Install the plugin from the [VSCode MarketPlace](https://marketplace.visualstudio.com/items?itemName=JayBarnes.chatgpt-vscode-plugin)

## Install the plugin from this [Github repository](https://github.com/barnesoir/chatgpt-vscode-plugin)
#### Commands:
- `yarn setup` (installs project dependencies)
- `yarn compile` (generates js files)
- `yarn vscode:package` (creates vscode installer package)
- `yarn vscode:install` (installs vscode package)

## Features
#### Commands:
- `ChatGPT: Query` (will provide a prompt for you to ask a question)
- `ChatGPT: Add tests` (generates tests based on file/text selection)
- `ChatGPT: Why is my code broken?` (analyses your code to highlight any logic/syntax errors)
- `ChatGPT: Explain code`
- `ChatGPT: Refactor`
- `ChatGPT: Set API Key` (set's your API key, auto promted on first use)

*Everything except Reset Token and Query are available from the context menu when right-clicking in the editor.*

![image](https://user-images.githubusercontent.com/38425102/206071229-f017247e-831b-4e42-8c1a-914851da392f.png)

## Usage

To use the extension:
**This extension uses the official OpenAI library**
Open the VS Code Command Palette and Type `ChatGPT: Set API Key`, this will prompt you for your key which can be generated here: https://openai.com/account/api-keys

*Once you're authenticated, you can ask ChatGPT any question and supply source code from your current file/selection.*

## Support
If you need help using this extension, please open an issue on the GitHub repository for this extension.

## Credits
- [ChatGPT](https://chat.openai.com/chat) - The large language model trained by OpenAI that was used to generate this README file
- [chatgpt-api](https://github.com/transitive-bullshit/chatgpt-api/) - The original NPM used prior to the offical library
- [mpociot's extension](https://github.com/mpociot/chatgpt-vscode) - Inspiration for the project and the original webview panel
- [Gencay's extension](https://github.com/gencay/vscode-chatgpt) - Ported version of Gencay's webview panel.
- [Yeoman](https://yeoman.io/) - The code generator used to scaffold the extension project
- [VS Code Extension Generator](https://github.com/Microsoft/vscode-generator-code) - The Yeoman generator for creating VS Code extensions