CodeGPT — use GPT-3 inside VSCode
CodeGPT is an extension that allows us to use GPT-3 inside VSCode through the official OpenAI API. This is something like having ChatGPT in our code editor!
With CodeGPT we can generate code, explain code, refactor code, and more.
Setting up CodeGPT on VSCode
To install this extension, we have to open VSCode, go to extensions, and search “Code GPT.” Once we find it, we click on “install”.
Once Code GPT is installed, we have to go to “Settings” and go to “Code GPT” (on macOS go to the menu bar and click on Code, then select “Preferences” to find the “Settings” option).
On settings, we’ll see the following.
To work with this extension you need to type your OpenAI API key in the first box in the image above.
You can leave the remaining boxes as is, but in case you want to customize them, keep this in mind:
- Max tokens: Maximum number of tokens you want to get…