DEV Community

Daniel San
Daniel San

Posted on • Edited on

8

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-

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay