Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Code GPTNew to Visual Studio Code? Get it now.
Code GPT

Code GPT

Code GPT

codegpt.co
|
626,724 installs
| (106) | Free
Use the Official OpenAI API inside VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code GPT: your coding sidekick!

Get Code Suggestions in real-time, right in your text editor using the official OpenAI API or others AI providers. To learn more, visit codegpt.co 👈 and read the installation instructions

BIG NEWS: CodeGPT has the ChatGPT API integrated: gpt-3.5-turbo and gpt-4

Important: To use GPT-4 you must request access to OpenAI in this link https://openai.com/product/gpt-4

Close and reopen the extension after updating. Or you can also use the command "Developer: Reload Window"

Community

Find tips and share your experience in our communities:

  • Discord
  • Reddit
  • Facebook Group

CodeGPT Chat

Open the chat with the option in the menu and start chatting with your code 💬 Check all the documentation here: CodeGPT Chat

Untitled design (3)

If you have any questions or problems you can ask in the communities or create an issue in this link: Report an Issue

Examples

Get code from comments

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

Get Code

Select the code and then click on Refactor CodeGPT

Copy of Copy of Untitled Design (6)

Ask StackOverflow

This functionality allows you to get questions from Stackoverflow and compare the best human answer 🧠 with the answer from an artificial intelligence 🤖

Copy of Copy of Copy of Untitled Design (2)

Create a README.md with Ask CodeGPT

Copy of Untitled Design

Select the code and then click on Explain CodeGPT

Copy of Copy of Untitled Design (5)


Features

  • CodeGPT Chat: Open a chat interface with the icon in the extensions bar
  • 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.
  • Ask CodeGPT - code selected: Select the code and ask a question, CodeGPT will open a new Editor and respond the question.
  • Compile & Run CodeGPT: CodeGPT will compile and run your selected code.
  • Ask StackOverflow: Search for a question using the Stackoverflow API and Code GPT will show the best human answer and then the AI ​​answer.
  • Explain CodeGPT: CodeGPT will open the chat section and explain the selected code.
  • Refactor CodeGPT: CodeGPT will open the chat section and refactor the selected code.
  • Document CodeGPT: CodeGPT will open the chat section and document the selected code.
  • Find Problems CodeGPT: CodeGPT will open the chat section and find any issue in the selected code.
  • Unit Test CodeGPT: CodeGPT will open the chat section and create unit tests of the selected code.

Store your API Key securely

  • Set API KEY: To save your API KEY securely.
  • Remove API KEY: To remove your API KEY.

IMPORTANT!

Other extensions store the API Key in Settings. DO NOT SAVE SENSITIVE INFORMATION IN SETTINGS. We care about the security of your data


Code GPT extension is FREE but the APIs of artificial intelligence providers that it consumes can be PAID for. Please carefully review the installation instructions at https://docs.codegpt.co/docs/intro

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-

  • AI Provider

    • OpenAI
    • Judini
    • Cohere
    • AI21
    • Anthropic
    • GPT4All
  • API Key

  • Model

  • Max Token

  • Temperature

Updates v2.1.9

  • New AI Provider: GPT4All
  • Added OpenAI Organization ID
  • Open a new tab with the chat code
  • You don't need to reload the window when changing the settings

Updates v2.1.8

  • New AI Provider: Judini

Updates v2.1.7

  • OpenAI API Error messages
  • New Anthropic models with 100.000 tokens

Updates v2.1.6

  • Show the code language in markdown
  • Move the chat code to the editor
  • Integration with promptlayer (beta)
  • Code Commit (beta)
  • Copy entire chat message
  • Information button about new updates

Updates v2.1.5

  • Open the chat with Ask CodeGPT
  • Timeout with OpenAI API fixed

Updates v2.1.4

  • New AI Provider: Anthropic
  • Scroll down fixed
  • Stop responding button
  • Fix close sidebar provider

Updates v2.1.3

  • Explain, Refactor, Document, Find Problems & Unit Test work with CodeGPT Chat

Updates v2.1.2

  • Chat start template
  • Chat completion fixed
  • VSCode Theme Support

Updates v2.1.1

  • Keeps the conversation history if you switch tabs
  • Button to clear the conversation

Updates v2.0.4

  • Write letter by letter with "Stream"
  • Button to copy the code to clipboard

Updates v2.0.3

  • Use the chat with selected code

Updates v2.0.2

  • GPT 4
  • OpenAI API Error message

Updates v2.0.1

  • CodeGPT Chat
  • API ChatGPT: gpt-3.5-turbo and gpt-3.5-turbo-0301
  • New AI Provider: AI21
  • New design with the VSCode interface

Updates v1.0.15

  • Interface improvement
  • Better prompts to improve the response
  • New feature: Search API (beta)
  • Fix Terraform files

Updates v1.0.14

  • New AI Provider: Cohere
  • API Error handler
  • Added webview to Explain and Document command
  • Added Terraform, swift, shellscript language detection

Updates v1.0.13

  • Supports VSCode version 1.73.0
  • New feature: Compile & Run
  • Added C, YAML and JSON language detection

Updates v1.0.12

  • fix prompt Ask StackOverflow
  • Added golang, powershell and react language detection

Updates v1.0.10

  • Ask StackOverflow
  • Webview StackOverflow
  • API errors are shown in the editor message

Updates v1.0.9

  • Added Korean, Polish and Turkish languages
  • Improved Get Code command error message

Updates v1.0.8

  • Added Chinese, Hebrew, Italian, Thai and Ukrainian languages
  • Fix 'undefined' account error with OpenAI API

Updates v1.0.7

  • New feature: Unit Test CodeGPT
  • Added Arabic, German, Japanese and Russian languages
  • Added new davinci-instruct-beta model

Updates v1.0.6

  • Code GPT website codepgt.co

Updates v1.0.5

  • Error handler with notifications

Updates v1.0.2

  • communities
  • README.md changes

Updates v1.0.1

  • Secure API Key storage
  • Added french language
  • Added ProgressLocation Notification

Updates v0.0.5

  • Added portuguese language
  • Default model "text-davinci-003"
  • The models "curie", "babbage" and "ada" are added

Updates v0.0.4

  • Fix README errors

Updates v0.0.3

  • Feature added Get Code
  • Automatically detect the language being used

Updates v0.0.2

  • Supported languages: English and Spanish
  • OpenAI api error handling
  • You can use Ask CodeGPT with selected code

For more datils about this extension, visit Code GPT

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft