DEV Community

Daniel San
Daniel San

Posted on • Updated on

GPT-3 inside VSCode with official OpenAI API

Code GPT extension for VSCode

Using the official OpenAI API inside the IDE with Code GPT.

New feature! Get code from comments

  • Write a comment asking for a specific code
  • Press cmd + shift + i
  • Use the code 😎

image1

Examples

Create a README.md with "Ask CodeGPT"

Copy of Untitled Design

Select the code and then click on Explain CodeGPT



Captura de Pantalla 2022-12-26 a la(s) 7 17 59 p  m

Result:



Captura de Pantalla 2022-12-26 a la(s) 7 19 02 p  m

Features

  • Get Code: Create a comment asking for a specific code and CodeGPT will open a new Editor with the code (You don't need to write the code language. CodeGPT will detect it automatically).
  • Ask CodeGPT: CodeGPT will open a new Editor and respond the question.
  • Explain CodeGPT: CodeGPT will open a new Editor and explain the code.
  • Refactor CodeGPT: CodeGPT will open a new Editor and refactor the code.
  • Document CodeGPT: CodeGPT will open a new Editor and Document the code.
  • Find Problems CodeGPT: CodeGPT will open a new Editor and find problems in the code.
  • Set API KEY: To save your API KEY securely.
  • Remove API KEY: To remove your API KEY.

Installation

Go to Settings > Extensions > CodeGPT

Complete the following information:

  • To enter your API Key press cmd+shift+p and search for CodeGPT: Set API KEY. Your API KEY will be safely stored.

Captura-de-Pantalla-2023-01-04-a-la-s-2-29-15-p-m-

Top comments (0)