Giter Site home page Giter Site logo

gpt3-vscode-extension's Introduction

๐Ÿค– GPT-3 Visual Studio Code Extension

Use GPT-3 to be a more efficient programmer!

  • โœ๏ธ Write to GPT-3 from your editor
  • ๐Ÿ’ป Generate code from your documentation
  • ๐Ÿ“– Generate documentation from your code
  • ๐Ÿ’ก Code review with explanation

Requirements

Your OpenAI API key

If you need an OpenAI account, it's free to signup and you get $18 in credits.


Install the extension

Marketplace page

When the extension is installed, a prompt will appear for you to enter in your API key.

This extension uses secret storage for API keys.

โš ๏ธ NOTE: Other extensions may store your API key in settings.json - this is not secure โš ๏ธ

All extensions can read the contents of settings.json. If your API key is stored there, a malicious extension can easily access it. To protect your API key, it must be stored in secret storage.


Current functionality

๐Ÿฆ„ Ask GPT ๐Ÿฆ„

Sends user input to GPT for processing. The response will appear in a modal.

Default key binding set to alt + g

Ask GPT in the Status Bar

๐ŸŽ‰ Create Code from Documentation ๐ŸŽ‰

Generates code for highlighted documentation. The code is automatically injected below the highlighted docs.

Default key binding set to alt + x

๐Ÿ”ฅ Create Documentation from Code ๐Ÿ”ฅ

Generates documentation for highlighted code. The docs are automatically injected above the highlighted code.

Default key binding set to alt + d

๐Ÿ’ฏ Code Review ๐Ÿ’ฏ

Sends highlighted code to GPT-3 for potential improvements. Suggested code and explanation will appear in a modal.

Default key binding set to alt + i


Extension Settings

Settings > Extensions > GPT


FAQ

๐Ÿ‘ฝ How can I reset my API key if I entered the wrong one?

  • Open command palette and run Update OpenAI API Key
  • Enter your correct API Key into the prompt
  • Reload the window

Release Notes

0.12.0

Added check if completion exceeds max_token values. Alert user how to resolve.

0.11.0

Option to set different values for code vs text completion settings (models, temperature, max tokens)

0.10.0

Create code from documentation

0.9.0

API Key in secret storage

0.8.0

Status bar item to initiate Ask GPT function. Returns more readable modal with a copy output button

0.7.0

Optionally include Organization in request to GPT

0.6.0

Easily configure your extension in preferences

0.4.0

Send GPT text directly. Ask a question or get clarity in your own words, without leaving your editor.

0.2.0

Generates code suggestion with explanation for highlighted code.

0.1.0

Creates documentation for highlighted code.

gpt3-vscode-extension's People

Contributors

mikebirdtech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gpt3-vscode-extension's Issues

Can't figure out where to put my API key

I'm sure I'm missing something and I'm not very familiar with Extensions in general, so I can't figure out where settings.json is or where to put my API key.

Limited Return Output

I selected 20+ lines of code in a python program to be reviewed. The returned output was in a popup window and seemed to be truncated. I copied the contents of the returned output and verified this was the case.

Used version v0.11.1 of GPT-3 A.I. Coding Assistant.
My Setup
Version: 1.74.2 (user setup)
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No

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.