Coder Social home page Coder Social logo

liuzhongcool / chatgpt-vscode-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from barnesoir/chatgpt-vscode-plugin

0.0 0.0 0.0 3.53 MB

A VS code plugin for ChatGPT built by ChatGPT

License: MIT License

JavaScript 28.33% TypeScript 55.68% CSS 15.98%

chatgpt-vscode-plugin's Introduction

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

Install the plugin from this Github repository

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

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 - The large language model trained by OpenAI that was used to generate this README file
  • chatgpt-api - The original NPM used prior to the offical library
  • mpociot's extension - Inspiration for the project and the original webview panel
  • Gencay's extension - Ported version of Gencay's webview panel.
  • Yeoman - The code generator used to scaffold the extension project
  • VS Code Extension Generator - The Yeoman generator for creating VS Code extensions

chatgpt-vscode-plugin's People

Contributors

barnesoir avatar timkmecl avatar dchiquito avatar circlenaut avatar

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.