VSCode extension for AI coding assistance
Code GPT is a coding extension for developers who use Visual Studio Code. It enables them to leverage the official OpenAI API, generating code and natural language responses to queries within their code editor.
Similar to Github Copilot in its functionality, this Visual Studio Code extension promises to supercharge coding with an AI assistant from ChatGPT, a fine-tuned version of OpenAI’s GPT3. It can be used to write code from scratch, get explanations, refactor code, find bugs, and optimize large chunks of code quickly.
How does it work?
The CodeGPT VSCode extension acts like a gateway that brings AI-based GPT-3 prompts to the VSCode web browser application via OpenAI’s official API. It’s almost like having ChatGPT in the code editor. This enables users to prompt the AI to generate code, explain it, refactor it, and check it for bugs by entering simple commands and right-clicking on code.
How to install it?
Users can install the Code GPT extension in VSCode by using the Extensions tab, searching for “Code GPT,” and clicking the Install button. They must then request an API key and set it up for CodeGPT by copying it into the input prompt.
What’s special about it?
The Code GPT VSCode extension can start generating code snippets and completing blocks of code right away. Users can describe the code they want, press the CodeGPT icon in the status bar, and select the code snippet to insert it at the cursor’s position. The tool also appends code selections to queries before sending them to the AI.
Brings ChatGPT features to VSCode
Using Code GPT as an extension to VSCode is easy, and it can enhance the coding experience. However, it can also shift developers’ focus from finding creative solutions to fixing AI code.